Re: [PATCH] Log crashed backend's query (activity string) - Mailing list pgsql-hackers

From Marti Raudsepp
Subject Re: [PATCH] Log crashed backend's query (activity string)
Date
Msg-id CABRT9RCaMs_VeCB0Ljvpib=0u9VZVijcOYhwzKqFo-_fgifztw@mail.gmail.com
Whole thread Raw
In response to Re: [PATCH] Log crashed backend's query (activity string)  (Alvaro Herrera <alvherre@commandprompt.com>)
Responses Re: [PATCH] Log crashed backend's query (activity string)
List pgsql-hackers
On Wed, Sep 7, 2011 at 22:42, Alvaro Herrera <alvherre@commandprompt.com> wrote:
> A mishandled encoding conversion could be problematic, so that needs to
> be carefully considered (perhaps just shut off unconditionally).

Are you referring to log file encoding or something else? The log file
is already potentially mixed-encoding, as different databases may have
different encodings and backends just dump bytes to it in their
current encoding.

pg_verify_mbstr() could potentially be used with noError=true if we
can figure out the backend's current encoding, but that indeed sounds
like something to avoid.

Regards,
Marti


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: FATAL: lock AccessShareLock on object 0/1260/0 is already held
Next
From: Tom Lane
Date:
Subject: Re: timezone GUC