docs: private double readDoubleValue(byte[] bytes, int oid, String targetType) throws PSQLException {
      // currently implemented binary encoded fields
      switch (oid) {
        case Oid.INT2:
          return ByteConverter.int2(bytes, 0);
        case Oid.INT4:
          return ByteConverter.int4(bytes, 0);
        case Oid.INT8:
          // might not fit but there still should be no overflow checking
          return ByteConverter.int8(bytes, 0);
        case Oid.FLOAT4:
          return ByteConverter.float4(bytes, 0);
        case Oid.FLOAT8:
          return ByteConverter.float8(bytes, 0);
      }
      throw new PSQLException(GT.tr("Cannot convert the column of type {0} to requested type {1}.",
          Oid.toString(oid), targetType), PSQLState.DATA_TYPE_MISMATCH);
    }