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
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-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

Browse pgsql-hackers by date

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

Browse pgsql-patches by date

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