From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Andrew Sullivan <andrew(at)libertyrms(dot)info>, pgsql-general <pgsql-general(at)postgresql(dot)org>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: [HACKERS] default locale considered harmful? (was Re: |
Date: | 2003-04-18 15:07:15 |
Message-ID: | 200304181507.h3IF7F708695@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers |
Tom Lane wrote:
> Andrew Sullivan <andrew(at)libertyrms(dot)info> writes:
> >> [ can't LIKE use an index? ]
>
> > Yes. But locale is enabled by default now, and if you use anything
> > other than C (and other-than-C is increasingly the default on the
> > supported platforms), it won't work. Just make sure that your locale
> > is C when you do initdb.
>
> I recall someone floating a proposal that initdb should by default
> initialize the database in C locale, not whatever-it-finds-in-the-
> environment. To get a non-C locale you'd have to give an explicit
> command-line switch --- essentially, reversing the sense of the present
> "initdb --no-locale" option.
>
> I'm beginning to think that would be a good idea, given the increasing
> prevalence of en_US as a platform locale setting. Comments?
Agreed, or we could special-case en_US to be C locale.
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
From | Date | Subject | |
---|---|---|---|
Next Message | Ken Williams | 2003-04-18 15:12:40 | Re: Weird "template1" errors on CREATE DATABASE |
Previous Message | Tom Lane | 2003-04-18 14:48:21 | default locale considered harmful? (was Re: Using index for "like 'ABC%'" type query) |
From | Date | Subject | |
---|---|---|---|
Next Message | Stephan Szabo | 2003-04-18 15:12:39 | Re: [PERFORM] Foreign key performance |
Previous Message | Tom Lane | 2003-04-18 14:51:39 | Re: [PERFORM] Foreign key performance |