Need to use pg_perm_setlocale when setting LC_CTYPE and LC_COLLATE at startup.
Heikki Linnakangas <heikki.linnakangas@iki.fi>
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.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/init/postinit.c | modified | +4 −3 |