Re: locale changes - Mailing list pgsql-patches

From Karel Zak
Subject Re: locale changes
Date
Msg-id Pine.LNX.3.96.1000720180025.11997U-100000@ara.zf.jcu.cz
Whole thread Raw
In response to Re: locale changes  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-patches
On Thu, 20 Jul 2000, Tom Lane wrote:

> Karel Zak <zakkr@zf.jcu.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


pgsql-patches by date:

Previous
From: Tom Lane
Date:
Subject: Re: locale changes
Next
From: "Michael Richards"
Date:
Subject: Patch to fix the NULL date cast bug in 7.0.2