]> 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:32 +0000 (17:53 +0000)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 8 Jul 2009 17:53:32 +0000 (17:53 +0000)
commit35863c9557085d0a116ffb48dc371efe18b85fea
treec5a6a3ad299e3d8e762924b3e43bc5725acf5f84
parentb6ff6309c252ee252605e8aa03baced064e82b04
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