Re: [HACKERS] a contrib function to query current locale values

2001-02-07 Thread Hannu Krosing
Tom Lane wrote: > > Hannu Krosing <[EMAIL PROTECTED]> writes: > > BTW, does anyone know if setlocale() is an expensive function ? > > The variant where you're just querying the current setting should not be > too expensive. I'd expect the variant where you are changing the > setting to be very

Re: [HACKERS] a contrib function to query current locale values

2001-02-07 Thread Tom Lane
Hannu Krosing <[EMAIL PROTECTED]> writes: > BTW, does anyone know if setlocale() is an expensive function ? The variant where you're just querying the current setting should not be too expensive. I'd expect the variant where you are changing the setting to be very expensive, however; most likely

Re: [HACKERS] a contrib function to query current locale values

2001-02-07 Thread Hannu Krosing
Karel Zak wrote: > 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 so

Re: [HACKERS] a contrib function to query current locale values

2001-02-07 Thread Karel Zak
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 mea

[HACKERS] a contrib function to query current locale values

2001-02-06 Thread Hannu Krosing
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 ;) from my README.getlocale: getlocale('category') - return the locale setting of the backe