Gregory Stark <stark@enterprisedb.com> writes:
> "Peter Eisentraut" <peter_e@gmx.net> writes:
>> Well, the problem is mainly that there is no query, because the bytes arriving
>> are garbage. A human observer could make sense of it in some cases, but not
>> a computer in the general case.
> How is that different from any other syntax error?
It's not a syntax error, it's an encoding error, and we daren't try to
spit the data back out for fear of getting more encoding errors and
ending up in an infinite recursion in elog.c.
regards, tom lane