Re: per-database locale: createdb switches

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

Peter Eisentraut wrote:
> Bruce Momjian wrote:
> > Heikki Linnakangas wrote:
> >> Alvaro Herrera wrote:
> >>> Tom Lane wrote:
> >>>> Alvaro Herrera <alvherre(at)commandprompt(dot)com> writes:
> >>>>> Alvaro Herrera wrote:
> >>>>>> I like Teodor's proposal; I'll see about implementing that.
> >>>>> Attached.
> >>>> You missed updating the sgml docs, and personally I'd be inclined to
> >>>> list -l before the individual --lc switches; otherwise it looks fine.
> >>> Thanks, committed that way. I noticed that --lc-ctype and --lc-collate
> >>> were forgotten in SGML docs, so I added them too.
> >> Should we have a shorthand CREATE DATABASE option like that as well?
> >
> > createdb is really about convenience; not sure it is warranted for
> > CREATE DATABASE.
>
> I think unless you are doing something completely funny, you would
> usually want to have COLLATE and CTYPE equal. The fact that you now
> have to enter both to get that result could be pretty annoying in
> practice, I would think.

I agree but I can't think of many cases where we offer one option which
controls two other options; can you?

--
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 Dave Page 2009-01-12 17:27:49 Re: Recovery Test Framework
Previous Message Joshua D. Drake 2009-01-12 17:20:27 Re: Recovery Test Framework