Re: locale changes

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Karel Zak <zakkr(at)zf(dot)jcu(dot)cz>
Cc: pgsql-patches <pgsql-patches(at)postgreSQL(dot)org>
Subject: Re: locale changes
Date: 2000-07-20 15:48:52
Message-ID: 25077.964108132@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

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?

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
set these things once at application startup, so it precomputes a ton
of stuff whenever you change 'em.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message The Hermit Hacker 2000-07-20 15:50:59 Re: About these IPC parameters
Previous Message Tom Lane 2000-07-20 15:43:37 Re: Loading binary data into the database

Browse pgsql-patches by date

  From Date Subject
Next Message Karel Zak 2000-07-20 16:16:15 Re: locale changes
Previous Message Karel Zak 2000-07-20 15:31:01 Re: locale changes