From: heikki@postgresql.org
To: pgsql-committers@postgresql.org
Subject: pgsql: Need to use pg_perm_setlocale when setting LC_CTYPE and
Date: Wed, 8 Jul 2009 17:53:29 +0000 (UTC)
Message-ID: <20090708175329.BD2D875331E@cvs.postgresql.org> (raw)
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.1...)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-committers@postgresql.org
Cc: heikki@postgresql.org
Subject: Re: pgsql: Need to use pg_perm_setlocale when setting LC_CTYPE and
In-Reply-To: <20090708175329.BD2D875331E@cvs.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox