pgsql: Need to use pg_perm_setlocale when setting LC_CTYPE and - Mailing list pgsql-committers

From heikki@postgresql.org (Heikki Linnakangas)
Subject pgsql: Need to use pg_perm_setlocale when setting LC_CTYPE and
Date
Msg-id 20090708175332.AAC3375331E@cvs.postgresql.org
Whole thread Raw
List pgsql-committers
Log Message:
-----------
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.

Tags:
----
REL8_4_STABLE

Modified Files:
--------------
    pgsql/src/backend/utils/init:
        postinit.c (r1.191 -> r1.191.2.1)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/init/postinit.c?r1=1.191&r2=1.191.2.1)

pgsql-committers by date:

Previous
From: heikki@postgresql.org (Heikki Linnakangas)
Date:
Subject: pgsql: Need to use pg_perm_setlocale when setting LC_CTYPE and
Next
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Remove no-longer-necessary transmission of postmaster's