]> granicus.if.org Git - postgresql/commit
Need to use pg_perm_setlocale when setting LC_CTYPE and LC_COLLATE at startup.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 8 Jul 2009 17:53:29 +0000 (17:53 +0000)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 8 Jul 2009 17:53:29 +0000 (17:53 +0000)
commite5bb0f04db225a06e08b9b74cde82325c87a8de3
treedfc5de0e6e4852d35d959dfc5c3a0fdfdc85a23b
parent53e7229258cb6463cffa70c9be20b9630aed8940
Need to use pg_perm_setlocale when setting LC_CTYPE and LC_COLLATE at startup.
Otherwise, the LC_CTYPE/COLLATE setting gets reverted when using plperl, which
leads to incorrect query results and index corruption.

This was accidentally broken in the per-database locale patch in 8.4. Pointed
out by Andrew Gierth.
src/backend/utils/init/postinit.c