Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> Looking at the send/receive functions for the text type, they
> communicate all data in the server encoding, so it seems reasonable to
> do this here as well.
Uh, no, I'm pretty sure there's a translation to the client encoding.
It's in a subroutine not in text_send proper.
regards, tom lane