| From: | Greg Stark <gsstark(at)mit(dot)edu> |
|---|---|
| To: | pgsql-hackers(at)postgresql(dot)org |
| Subject: | Re: ORDER BY different locales |
| Date: | 2004-02-26 20:38:47 |
| Message-ID: | 87oerlh8yw.fsf@stark.xeocode.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general pgsql-hackers |
Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> writes:
> This function breaks the whole backend if an elog() failure occurs while
> it's got the wrong locale set. I believe it would also be remarkably
> slow --- doesn't setlocale() involve reading a new locale definition
> file from whereever those are stored?
I posted a similar function a while back using strxfrm and someone else
refined to eliminate a similar problem with elog(). I tested the speed under
glibc and it blazingly fast. I think the time difference was hardly even
noticeable over any other string function.
Certainly I expect there would be some platforms that would perform poorly,
but then there are lots of things various platforms do poorly. I don't think
that means postgres should reimplement everything itself for consistency. That
way lies Oracle.
--
greg
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Andrew Melton | 2004-02-26 20:40:24 | Re: Hostname change - pgsql won't start |
| Previous Message | Andrew Melton | 2004-02-26 20:34:23 | Re: Hostname change - pgsql won't start |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Andrew Dunstan | 2004-02-26 20:41:26 | Re: [HACKERS] Collaboration Tool Proposal |
| Previous Message | Josh Berkus | 2004-02-26 20:28:44 | Re: Collaboration Tool Proposal |