Re: per-database locale: createdb switches - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: per-database locale: createdb switches
Date
Msg-id 200901121721.n0CHLHE08197@momjian.us
Whole thread Raw
In response to Re: per-database locale: createdb switches  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: per-database locale: createdb switches  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-hackers
Peter Eisentraut wrote:
> Bruce Momjian wrote:
> > Heikki Linnakangas wrote:
> >> Alvaro Herrera wrote:
> >>> Tom Lane wrote:
> >>>> Alvaro Herrera <alvherre@commandprompt.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@momjian.us>        http://momjian.us EnterpriseDB
http://enterprisedb.com
 + If your life is a hard drive, Christ can be your backup. +


pgsql-hackers by date:

Previous
From: "Joshua D. Drake"
Date:
Subject: Re: Recovery Test Framework
Next
From: "Dave Page"
Date:
Subject: Re: Recovery Test Framework