Re: per-database locale: createdb switches

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: per-database locale: createdb switches
Дата
Msg-id 20081106185440.GP5520@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: per-database locale: createdb switches  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: per-database locale: createdb switches  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Tom Lane wrote:
> Teodor Sigaev <teodor@sigaev.ru> writes:
> > Alvaro Herrera wrote:
> >> It seems awkward; why can't we just have a
> >> single --locale switch that selects both settings at once?
> 
> > Sometimes it's needed to use C-collate with non-C-ctype. But for most 
> > users it's enough just a locale switch. What about 
> > [--locale=X|--lc-collate=X --lc-ctype=X] option?
> 
> Seems to me there's one there already.

You're thinking of initdb maybe?  I'm talking about createdb.


$ LC_ALL=C createdb --version
createdb (PostgreSQL) 8.4devel

$ LC_ALL=C createdb --help
createdb creates a PostgreSQL database.

Usage: createdb [OPTION]... [DBNAME] [DESCRIPTION]

Options: -D, --tablespace=TABLESPACE  default tablespace for the database -E, --encoding=ENCODING      encoding for the
database--lc-collate=LOCALE          LC_COLLATE setting for the database --lc-ctype=LOCALE            LC_CTYPE setting
forthe database -O, --owner=OWNER            database user to own the new database -T, --template=TEMPLATE
templatedatabase to copy -e, --echo                   show the commands being sent to the server --help
     show this help, then exit --version                    output version information, then exit
 

Connection options: -h, --host=HOSTNAME          database server host or socket directory -p, --port=PORT
databaseserver port -U, --username=USERNAME      user name to connect as -W, --password               force password
prompt

By default, a database with the same name as the current user is created.

Report bugs to <pgsql-bugs@postgresql.org>.


-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: per-database locale: createdb switches
Следующее
От: Tom Lane
Дата:
Сообщение: Re: per-database locale: createdb switches