git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 33e7eac) | patch
Fix SetClientEncoding() to maintain a cache of previously selected encoding
Thu, 2 Apr 2009 17:30:53 +0000 (17:30 +0000)
Thu, 2 Apr 2009 17:30:53 +0000 (17:30 +0000)
commit c26ffb1ead84adc79ef6cfbe125b300cccd1e2b7
Fix SetClientEncoding() to maintain a cache of previously selected encoding
conversion functions. This allows transaction rollback to revert to a
previous client_encoding setting without doing fresh catalog lookups.
I believe that this explains and fixes the recent report of "failed to commit
client_encoding" failures.

This bug is present in 8.3.x, but it doesn't seem prudent to back-patch
the fix, at least not till it's had some time for field testing in HEAD.

In passing, remove SetDefaultClientEncoding(), which was used nowhere.
src/backend/utils/mb/mbutils.c diff | blob | blame | history
src/include/mb/pg_wchar.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /