Re: select fails on indexed varchars. - Mailing list pgsql-bugs

From Alex Krohn
Subject Re: select fails on indexed varchars.
Date
Msg-id 20010126084514.0B92.ALEX@gossamer-threads.com
Whole thread Raw
In response to Re: select fails on indexed varchars.  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
Hi Tom,

> > [postgres@penguin pgsql]$ locale
> > LANG=en_US
> > LC_CTYPE="en_US"
> > LC_NUMERIC="en_US"
> > LC_TIME="en_US"
> > LC_COLLATE="en_US"
> > LC_MONETARY="en_US"
> > LC_MESSAGES="en_US"
> > LC_ALL=en_US
> > [postgres@penguin pgsql]$
>
> > Postmaster is running as user pgsql. Any ideas on workarounds?
>
> Use locale "C" unless you have a really good reason why you need
> en_US sorting order.
>
> Beware of changing the postmaster's locale on the fly, however,
> since that will leave you with corrupted (out-of-order) indexes.
> Safest to dump/initdb in new locale/reload.

How would I go about changing that? Setting LANG and LC_ALL in the pgsql
users home directory .bashrc? Or do I need to edit the startup file?

Cheers,

Alex

pgsql-bugs by date:

Previous
From: Alex Krohn
Date:
Subject: Re: select fails on indexed varchars.
Next
From: Alex Krohn
Date:
Subject: Re: select fails on indexed varchars.