Re: "failed to commit client_encoding" explained - Mailing list pgsql-hackers

From Tom Lane
Subject Re: "failed to commit client_encoding" explained
Date
Msg-id 20529.1238682721@sss.pgh.pa.us
Whole thread Raw
In response to Re: "failed to commit client_encoding" explained  (Magnus Hagander <magnus@hagander.net>)
List pgsql-hackers
Magnus Hagander <magnus@hagander.net> writes:
> Tom Lane wrote:
>> Comments?

> Certainly seems like a reasonable compromise. From what I understand,
> you'll get this "failed to commit..." message *if* you have changedf
> things in pg_conversion. I think that's acceptable - it's not like
> people modify pg_conversion all the time (at least I hope they don't).

Yeah, that's a corner case on a corner case.

A further thought here is that even though the change I propose is
pretty localized, it's still complicated enough to possibly introduce
new bugs.  And it's fixing a case that I think doesn't occur in
practice; people don't really make local-in-transaction changes of
client_encoding.  (Remember the bug was only discovered by accident.)

So my inclination is to fix it now in HEAD so it can go through a
cycle of beta testing, but leave 8.3 alone.  We can back-patch it
after testing if we get any additional complaints.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: 8.4 open items list
Next
From: Dave Page
Date:
Subject: Re: 8.4 open items list