Eric Marsden <emarsden(at)laas(dot)fr> writes:
> It seems to me that it would be more useful, and more consistent
> with the way text is handled in the fe/be protocol, to use the
> character encoding that was requested by the client (the equivalent
> of PQsetClientEncoding) instead of this literal \xxx escaping.
Surely not. This is bytea data we are talking about --- there is no
reason to suppose that encoding has anything to do with it. If you
want client_encoding to take a hand, you should be storing data as text
not bytea.
regards, tom lane