From: | Greg Stark <gsstark(at)mit(dot)edu> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: How to add locale support for each column? |
Date: | 2004-09-19 16:07:35 |
Message-ID: | 87ekkykzso.fsf@stark.xeocode.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-patches |
Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> 2) switching the locale at run time is too expensive when using the system
> library.
Fwiw I did some experiments with this and found it wasn't true. At least with
glibc I could switch the locale to what I wanted and back for every record in
a million record table with basically no noticeable effect on the query
execution time.
Of course not every system will have an equally speedy implementation. But I
don't think that's an argument for postgres to reimplement portions of the OS.
If the OS locale handling is slow on some OS's then postgres should just warn
its users that using locales on those OS's will be slow.
In any case I suspect more than just the glibc implementation cache locales in
memory at this point. It seems like just too obvious a feature and more and
more applications require locale switching to be fast anyways.
--
greg
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Paesold | 2004-09-19 16:13:34 | Re: Rollback on Error |
Previous Message | Michael Paesold | 2004-09-19 13:42:28 | Re: SAVEPOINT SQL conformance |
From | Date | Subject | |
---|---|---|---|
Next Message | Dennis Bjorklund | 2004-09-19 17:16:42 | Re: How to add locale support for each column? |
Previous Message | Peter Eisentraut | 2004-09-19 08:45:39 | Re: How to add locale support for each column? |