From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Mathieu Arnold <arn_mat(at)club-internet(dot)fr> |
Cc: | pgsql-general <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: locales and indexes. |
Date: | 2000-11-10 15:17:17 |
Message-ID: | 11306.973869437@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Mathieu Arnold <arn_mat(at)club-internet(dot)fr> writes:
> I ran into trouble with all my indexes when i upgraded postgresql from
> 7.0.2 to 7.0.2 with locales. I did not really found where the problem
> was but the indexes created before were messing un all the queries using
> them.
> The thing i did was drop/create with my indexes, but it shouldn't be
> necessary to do so, isn't it ?
If you're using locale support, it's essential to make sure the
postmaster is started with the same LOCALE environment variables
every time. Otherwise you are redefining the sort order of indexes
every time you change the environment, which is a one-way ticket
to messed-up indexes.
We've heard from several people who made this mistake in the form of
sometimes starting the postmaster from the command line and sometimes
from a boot script. Unfortunately their login environment wasn't like
the environment supplied by the boot script :-(
There is a TODO item to cause the postmaster always to adopt the LOCALE
settings that were in force when initdb ran, but it doesn't seem to be
very high priority for anyone... for now, just be careful.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Mathieu Arnold | 2000-11-10 15:33:34 | Re: locales and indexes. |
Previous Message | Tom Lane | 2000-11-10 15:11:50 | Re: Sequencial scan over primary keys |