aboutsummaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2008-11-10 16:25:41 +0000
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2008-11-10 16:25:41 +0000
commit6462e7b81c0650bf23325a66cb70aa7ff7d78fad (patch)
treebcdedfaf251c0c4cdd7c1df4eca870e337874980 /doc/src
parent2b74d45c1b7c8170b8a2abdd86dae8fd2bb239e7 (diff)
downloadpostgresql-6462e7b81c0650bf23325a66cb70aa7ff7d78fad.tar.gz
postgresql-6462e7b81c0650bf23325a66cb70aa7ff7d78fad.zip
Add a --locale switch to createdb, to ease the creation of databases with
different locales. This is just syntactical sweetener over --lc-collate and --lc-ctype. Per discussion. While at it, properly document --lc-ctype and --lc-collate in SGML docs, which apparently were forgotten (or purposefully ommited?) when they were created.
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/sgml/ref/createdb.sgml33
1 files changed, 31 insertions, 2 deletions
diff --git a/doc/src/sgml/ref/createdb.sgml b/doc/src/sgml/ref/createdb.sgml
index c75042c9b74..c8c12e8b067 100644
--- a/doc/src/sgml/ref/createdb.sgml
+++ b/doc/src/sgml/ref/createdb.sgml
@@ -1,5 +1,5 @@
<!--
-$PostgreSQL: pgsql/doc/src/sgml/ref/createdb.sgml,v 1.47 2007/12/11 19:57:32 tgl Exp $
+$PostgreSQL: pgsql/doc/src/sgml/ref/createdb.sgml,v 1.48 2008/11/10 16:25:41 alvherre Exp $
PostgreSQL documentation
-->
@@ -107,6 +107,35 @@ PostgreSQL documentation
</varlistentry>
<varlistentry>
+ <term><option>-l <replaceable class="parameter">locale</replaceable></></term>
+ <term><option>--locale <replaceable class="parameter">locale</replaceable></></term>
+ <listitem>
+ <para>
+ Specifies the locale to be used in this database. This is equivalent
+ to specifying both <option>--lc-collate</option> and <option>--lc-ctype</option>.
+ </para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
+ <term><option>--lc-collate <replaceable class="parameter">locale</replaceable></></term>
+ <listitem>
+ <para>
+ Specifies the LC_COLLATE setting to be used in this database.
+ </para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
+ <term><option>--lc-ctype <replaceable class="parameter">locale</replaceable></></term>
+ <listitem>
+ <para>
+ Specifies the LC_CTYPE setting to be used in this database.
+ </para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
<term><option>-E <replaceable class="parameter">encoding</replaceable></></term>
<term><option>--encoding <replaceable class="parameter">encoding</replaceable></></term>
<listitem>
@@ -142,7 +171,7 @@ PostgreSQL documentation
</para>
<para>
- The options <option>-D</option>, <option>-E</option>,
+ The options <option>-D</option>, <option>-E</option>, <option>-l</option>,
<option>-O</option>, and
<option>-T</option> correspond to options of the underlying
SQL command <xref linkend="SQL-CREATEDATABASE"