Re: BUG #4281: some types of errors do not log statements - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #4281: some types of errors do not log statements
Date
Msg-id 9963.1219769429@sss.pgh.pa.us
Whole thread Raw
In response to Re: BUG #4281: some types of errors do not log statements  (Gregory Stark <stark@enterprisedb.com>)
List pgsql-bugs
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

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: Behavior change in PG8.3?
Next
From: Jeff Davis
Date:
Subject: Re: non-deterministic error related to MIN/MAX optimization