Skip site navigation (1) Skip section navigation (2)

pgsql: Need to use pg_perm_setlocale when setting LC_CTYPE and

From: heikki(at)postgresql(dot)org (Heikki Linnakangas)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Need to use pg_perm_setlocale when setting LC_CTYPE and
Date: 2009-07-08 17:53:29
Message-ID: 20090708175329.BD2D875331E@cvs.postgresql.org (view raw or flat)
Thread:
Lists: 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.

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

pgsql-committers by date

Next:From: Heikki LinnakangasDate: 2009-07-08 17:53:32
Subject: pgsql: Need to use pg_perm_setlocale when setting LC_CTYPE and
Previous:From: Tom LaneDate: 2009-07-08 17:22:01
Subject: pgsql: Add missing HOUR TO SECOND option to list of possible INTERVAL

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group