Re: per-database locale: createdb switches

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Alvaro Herrera <alvherre(at)commandprompt(dot)com>, Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>, Peter Eisentraut <peter_e(at)gmx(dot)net>, Teodor Sigaev <teodor(at)sigaev(dot)ru>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: per-database locale: createdb switches
Date: 2009-02-06 17:24:11
Message-ID: 200902061724.n16HOBE00880@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane wrote:
> Alvaro Herrera <alvherre(at)commandprompt(dot)com> writes:
> > Heikki Linnakangas wrote:
> >> Hmm, I remember I pondered for a long time if it should be COLLATE and
> >> CTYPE or LC_COLLATE and LC_CTYPE. I think the rationale in the end was
> >> that a) COLLATE/CTYPE looks nicer and b) if we add support for ICU or
> >> some other collation implementation, the association with LC_*
> >> environment variables becomes misleading.
> >>
> >> Being consistent would be nice, though.
>
> > I think consistency could be reached by renaming the GUC setting to
> > ctype.
>
> I think this is a bad idea, particularly if you also rename the other
> GUC to COLLATE (which is a reserved word that we're going to have to
> implement someday). People know what LC_CTYPE and LC_COLLATE do,
> at least if they've heard of Unix locale support at all (and if not
> they can google those names successfully).
>
> If we want consistency then the right answer is to rename the *new*
> things to lc_xxx, not break compatibility on the names of the
> existing things.

Is anyone working on resolving this?

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2009-02-06 17:25:53 Re: So, what locale should the regression tests run in?
Previous Message Alvaro Herrera 2009-02-06 17:20:28 Re: new GUC var: autovacuum_process_all_tables