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

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 (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-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

pgsql-hackers by date

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

pgsql-patches by date

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

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