| From: | Bruce Momjian <bruce(at)momjian(dot)us> |
|---|---|
| To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
| Cc: | Peter Eisentraut <peter_e(at)gmx(dot)net>, Euler Taveira de Oliveira <euler(at)timbira(dot)com>, pgsql-hackers(at)postgresql(dot)org |
| Subject: | Re: Day and month name localization uses wrong locale category |
| Date: | 2007-02-14 04:35:51 |
| Message-ID: | 200702140435.l1E4Zpl15517@momjian.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Would someone update this patch with the optimization below. The patch
is at?
http://momjian.postgresql.org/cgi-bin/pgpatches_hold
---------------------------------------------------------------------------
Tom Lane wrote:
> Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> > What's concerning me about the way this is written is that it calls
> > setlocale() for each formatting instance, which will be very slow.
>
> Perhaps, the first time the info is needed, do setlocale(), ask strftime
> for the 12+7 strings we need and save them away, then revert to C locale
> and proceed from there.
>
> regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/docs/faq
--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://www.enterprisedb.com
+ If your life is a hard drive, Christ can be your backup. +
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2007-02-14 04:37:43 | Re: Re: [BUGS] BUG #2724: Could not check connection status with "ssl=on" |
| Previous Message | Bruce Momjian | 2007-02-14 04:30:00 | Re: Re: [BUGS] BUG #2724: Could not check connection status with "ssl=on" |