Matteo Beccati <php@beccati.com> writes:
> However, before taking a look at the actual code and understanding its
> behaviour, I tried using "SET bytea_output = 'escape'" and I was
> expecting PQescapeByteaConn to honour it.
Why? PQescapeByteaConn's charter is to produce something that will work
on the given connection, no more and no less.
regards, tom lane