docs: @Override
    public byte[] getBytes(int columnIndex) throws SQLException {
      connection.getLogger().log(Level.FINEST, "  getBytes columnIndex: {0}", columnIndex);
      checkResultSet(columnIndex);
      if (wasNullFlag) {
        return null;
      }
  
      if (isBinary(columnIndex)) {
        // If the data is already binary then just return it
        return thisRow[columnIndex - 1];
      }
      if (fields[columnIndex - 1].getOID() == Oid.BYTEA) {
        return trimBytes(columnIndex, PGbytea.toBytes(thisRow[columnIndex - 1]));
      } else {
        return trimBytes(columnIndex, thisRow[columnIndex - 1]);
      }
    }