Re: a contrib function to query current locale values - Mailing list pgsql-hackers

From Karel Zak
Subject Re: a contrib function to query current locale values
Date
Msg-id Pine.LNX.3.96.1010207100604.16736A-100000@ara.zf.jcu.cz
Whole thread Raw
In response to a contrib function to query current locale values  (Hannu Krosing <hannu@tm.ee>)
List pgsql-hackers
On Wed, 7 Feb 2001, Hannu Krosing wrote:

> 
> Hi,
> 
> I've written a small function that should go into contrib for 7.1
> 
> As locale issues are quite tricky, being able to find out what locale 
> backend thinks it is in is a good thing ;)
hmm, see you PG sources -- pg_locale.c file?
I mean that is not good lavish the sources with same code. If this is
really needful will better add your idea into this file and use
PGLC_current() instead add to sources again new setlocale() call.
The current backend (unfortunately) disable change locales on the fly 
-- this means your function will returns always same result :-)
IMHO more nice will some function 'environment()' returns *all* backend
environment values (locales, debug mode ... etc) or command "SHOW LOCALE"
or something like this.
        Karel




pgsql-hackers by date:

Previous
From: Peter T Mount
Date:
Subject: Re: using the same connection?
Next
From: Jan Wieck
Date:
Subject: Re: Foreign Key Columns And Indices