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

Re: locale changes

From: Karel Zak <zakkr(at)zf(dot)jcu(dot)cz>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-patches <pgsql-patches(at)postgreSQL(dot)org>
Subject: Re: locale changes
Date: 2000-07-20 16:16:15
Message-ID: Pine.LNX.3.96.1000720180025.11997U-100000@ara.zf.jcu.cz (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-patches
On Thu, 20 Jul 2000, Tom Lane wrote:

> Karel Zak <zakkr(at)zf(dot)jcu(dot)cz> writes:
> > 	change_to_on_the_fly_locale_setting()
> > 	to_char();
> > 	set_original_locale();
> 
> And if to_char throws an elog?

 elog can check how locale struct is actual..

> Another objection is that (if my experience with libc's
> timezone-dependent code is any guide) changing the locale that much
> is likely to be *slow*.  libc is designed on the assumption that you

 It is better argument for me :-). I hope that nobody be angry at me about
this patch. I was probably really a little premature... grrr 2 programming
hours are in /dev/null..   

 If I good remember, one year ago when I discussed (via private mails)
about formatting date/time with Thomas, we said something about locales
out of libc. Any system table? Any planns?

					Karel


In response to

pgsql-hackers by date

Next:From: Jan WieckDate: 2000-07-20 16:41:16
Subject: Re: About TOAST and indices
Previous:From: Peter EisentrautDate: 2000-07-20 16:10:24
Subject: How PostgreSQL's floating-point hurts everyone everywhere

pgsql-patches by date

Next:From: Peter EisentrautDate: 2000-07-21 00:46:10
Subject: Re: [PATCHES] locale changes
Previous:From: Tom LaneDate: 2000-07-20 15:48:52
Subject: Re: locale changes

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