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

Re: Rough sketch for locale by default

From: Hannu Krosing <hannu(at)tm(dot)ee>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>,PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Rough sketch for locale by default
Date: 2002-03-28 15:50:44
Message-ID: 1017330649.6061.13.camel@taru.tm.ee (view raw or flat)
Thread:
Lists: pgsql-hackers
On Wed, 2002-03-27 at 19:26, Tom Lane wrote:
> Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> > [ good stuff snipped ]
> 
> > ... Also, it prevents accidentally changing the locale when you
> > (or someone else) fiddle with your environment variables.
> 
> If I follow this correctly, the behavior would be that PG would not pay
> attention to *any* LC_xxx environment variables?  Although I agree with
> that principle in the abstract, it bothers me that PG will be out of
> step with every single other locale-using program in the Unix world.

IIRC oracle uses NLS_LANG and not any LC_* (even on unix ;)

it is set to smth like NLS_LANG=ESTONIAN_ESTONIA.WE8ISO8859P15


> We ought to think twice about whether that's really a good idea.
> 
> > Note that you get the same kind of command line options as in initdb:
> > --lc-numeric, --locale, etc.  You can also run SHOW lc_numeric to see
> > what's going on.
> 
> Probably you thought of this already: please also support SHOW for the
> initdb-time variables (lc_collate, etc), so that one can find out the
> active locale settings without having to resort to
> contrib/pg_controldata.

------------
Hannu



In response to

pgsql-hackers by date

Next:From: Hannu KrosingDate: 2002-03-28 15:56:39
Subject: Re: Rough sketch for locale by default
Previous:From: Mario WeilguniDate: 2002-03-28 15:44:51
Subject: Re: deadlock problems with foreign keys

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