11<!--
2- $Header: /cvsroot/pgsql/doc/src/sgml/ref/createdb.sgml,v 1.29 2002/09/21 18:32:54 petere Exp $
2+ $Header: /cvsroot/pgsql/doc/src/sgml/ref/createdb.sgml,v 1.30 2002/10/11 23:03:48 petere Exp $
33PostgreSQL documentation
44-->
55
@@ -59,46 +59,39 @@ PostgreSQL documentation
5959 <refsect1>
6060 <title>Options</title>
6161
62- <variablelist>
63- <varlistentry>
64- <term><option>-h <replaceable class="parameter">host</replaceable></></term>
65- <term><option>--host <replaceable class="parameter">host</replaceable></></term>
66- <listitem>
67- <para>
68- Specifies the host name of the machine on which the
69- server is running. If host begins with a slash, it is used
70- as the directory for the Unix domain socket.
71- </para>
72- </listitem>
73- </varlistentry>
62+ <para>
63+ <application>createdb</application> accepts the following command-line arguments:
7464
65+ <variablelist>
7566 <varlistentry>
76- <term><option>-p <replaceable class="parameter">port</replaceable></></term>
77- <term><option>--port <replaceable class="parameter">port</replaceable></></term>
67+ <term><replaceable class="parameter">dbname</replaceable></term>
7868 <listitem>
7969 <para>
80- Specifies the Internet TCP/IP port or the local Unix domain socket file
81- extension on which the server is listening for connections.
70+ Specifies the name of the database to be created. The name must be
71+ unique among all <productname>PostgreSQL</productname> databases in this installation.
72+ The default is to create a database with the same name as the
73+ current system user.
8274 </para>
8375 </listitem>
8476 </varlistentry>
8577
8678 <varlistentry>
87- <term><option>-U <replaceable class="parameter">username</replaceable></></term>
88- <term><option>--username <replaceable class="parameter">username</replaceable></></term>
79+ <term><replaceable class="parameter">description</replaceable></term>
8980 <listitem>
9081 <para>
91- User name to connect as
82+ This optionally specifies a comment to be associated with the newly created
83+ database.
9284 </para>
9385 </listitem>
9486 </varlistentry>
9587
9688 <varlistentry>
97- <term><option>-W </></term>
98- <term><option>--password </></term>
89+ <term><option>-D <replaceable class="parameter">location</replaceable> </></term>
90+ <term><option>--location <replaceable class="parameter">location</replaceable> </></term>
9991 <listitem>
10092 <para>
101- Force password prompt.
93+ Specifies the alternative location for the database. See also <xref
94+ linkend="app-initlocation">.
10295 </para>
10396 </listitem>
10497 </varlistentry>
@@ -115,11 +108,11 @@ PostgreSQL documentation
115108 </varlistentry>
116109
117110 <varlistentry>
118- <term><option>-q </></term>
119- <term><option>--quiet </></term>
111+ <term><option>-E <replaceable class="parameter">encoding</replaceable> </></term>
112+ <term><option>--encoding <replaceable class="parameter">encoding</replaceable> </></term>
120113 <listitem>
121114 <para>
122- Do not display a response .
115+ Specifies the character encoding scheme to be used in this database .
123116 </para>
124117 </listitem>
125118 </varlistentry>
@@ -135,12 +128,11 @@ PostgreSQL documentation
135128 </varlistentry>
136129
137130 <varlistentry>
138- <term><option>-D <replaceable class="parameter">datadir</replaceable> </></term>
139- <term><option>--location <replaceable class="parameter">datadir</replaceable> </></term>
131+ <term><option>-q </></term>
132+ <term><option>--quiet </></term>
140133 <listitem>
141134 <para>
142- Specifies the alternative location for the database. See also <xref
143- linkend="app-initlocation">.
135+ Do not display a response.
144136 </para>
145137 </listitem>
146138 </varlistentry>
@@ -154,53 +146,68 @@ PostgreSQL documentation
154146 </para>
155147 </listitem>
156148 </varlistentry>
149+ </variablelist>
150+ </para>
157151
152+ <para>
153+ The options <option>-D</option>, <option>-E</option>,
154+ <option>-O</option>, and
155+ <option>-T</option> correspond to options of the underlying
156+ SQL command <xref linkend="SQL-CREATEDATABASE"
157+ endterm="SQL-CREATEDATABASE-title">; see there for more information
158+ about them.
159+ </para>
160+
161+ <para>
162+ <application>createdb</application> also accepts the following
163+ command-line arguments for connection parameters:
164+
165+ <variablelist>
158166 <varlistentry>
159- <term><option>-E <replaceable class="parameter">encoding </replaceable></></term>
160- <term><option>--encoding <replaceable class="parameter">encoding </replaceable></></term>
167+ <term><option>-h <replaceable class="parameter">host </replaceable></></term>
168+ <term><option>--host <replaceable class="parameter">host </replaceable></></term>
161169 <listitem>
162170 <para>
163- Specifies the character encoding scheme to be used in this database.
171+ Specifies the host name of the machine on which the
172+ server is running. If host begins with a slash, it is used
173+ as the directory for the Unix domain socket.
164174 </para>
165175 </listitem>
166176 </varlistentry>
167177
168178 <varlistentry>
169- <term><replaceable class="parameter">dbname</replaceable></term>
179+ <term><option>-p <replaceable class="parameter">port</replaceable></></term>
180+ <term><option>--port <replaceable class="parameter">port</replaceable></></term>
170181 <listitem>
171182 <para>
172- Specifies the name of the database to be created. The name must be
173- unique among all <productname>PostgreSQL</productname> databases in this installation.
174- The default is to create a database with the same name as the
175- current system user.
183+ Specifies the Internet TCP/IP port or the local Unix domain socket file
184+ extension on which the server is listening for connections.
176185 </para>
177186 </listitem>
178187 </varlistentry>
179188
180189 <varlistentry>
181- <term><replaceable class="parameter">description</replaceable></term>
190+ <term><option>-U <replaceable class="parameter">username</replaceable></></term>
191+ <term><option>--username <replaceable class="parameter">username</replaceable></></term>
182192 <listitem>
183193 <para>
184- This optionally specifies a comment to be associated with the newly created
185- database.
194+ User name to connect as
186195 </para>
187196 </listitem>
188197 </varlistentry>
189198
199+ <varlistentry>
200+ <term><option>-W</></term>
201+ <term><option>--password</></term>
202+ <listitem>
203+ <para>
204+ Force password prompt.
205+ </para>
206+ </listitem>
207+ </varlistentry>
190208 </variablelist>
191-
192- <para>
193- The options <option>-h</option>, <option>-p</option>, <option>-U</option>,
194- <option>-W</option>, and <option>-e</option> are passed on literally to
195- <xref linkend="app-psql">.
196-
197- The options <option>-O</option>, <option>-D</option>,
198- <option>-T</option>, and
199- <option>-E</option> are converted into options for the underlying
200- SQL command <xref linkend="SQL-CREATEDATABASE"
201- endterm="SQL-CREATEDATABASE-title">; see there for more information
202- about them.
203209 </para>
210+
204211 </refsect1>
205212
206213