Open tobq opened 2 years ago
I guess it could be argued that there's no appropriate (native) java type that can represent CITEXT, so the citext should be converted to a normal string before reaching the driver?
citext
seems an optional module. It would make sense to register a StringCodec
for a given OID to be able to read such values as String
. Take a look at https://github.com/pgjdbc/r2dbc-postgresql/blob/main/src/main/java/io/r2dbc/postgresql/codec/BuiltinDynamicCodecs.java.
In the passed, I had to register a custom codec to process the citext. Is there a reason the library doesn't handle citext itself?
One issue I found with my custom codec is that the OID isn't always the same - it was different on my local machine than to my server