1
1
<!--
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 $
3
3
PostgreSQL documentation
4
4
-->
5
5
@@ -59,46 +59,39 @@ PostgreSQL documentation
59
59
<refsect1>
60
60
<title>Options</title>
61
61
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:
74
64
65
+ <variablelist>
75
66
<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>
78
68
<listitem>
79
69
<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.
82
74
</para>
83
75
</listitem>
84
76
</varlistentry>
85
77
86
78
<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>
89
80
<listitem>
90
81
<para>
91
- User name to connect as
82
+ This optionally specifies a comment to be associated with the newly created
83
+ database.
92
84
</para>
93
85
</listitem>
94
86
</varlistentry>
95
87
96
88
<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>
99
91
<listitem>
100
92
<para>
101
- Force password prompt.
93
+ Specifies the alternative location for the database. See also <xref
94
+ linkend="app-initlocation">.
102
95
</para>
103
96
</listitem>
104
97
</varlistentry>
@@ -115,11 +108,11 @@ PostgreSQL documentation
115
108
</varlistentry>
116
109
117
110
<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>
120
113
<listitem>
121
114
<para>
122
- Do not display a response .
115
+ Specifies the character encoding scheme to be used in this database .
123
116
</para>
124
117
</listitem>
125
118
</varlistentry>
@@ -135,12 +128,11 @@ PostgreSQL documentation
135
128
</varlistentry>
136
129
137
130
<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>
140
133
<listitem>
141
134
<para>
142
- Specifies the alternative location for the database. See also <xref
143
- linkend="app-initlocation">.
135
+ Do not display a response.
144
136
</para>
145
137
</listitem>
146
138
</varlistentry>
@@ -154,53 +146,68 @@ PostgreSQL documentation
154
146
</para>
155
147
</listitem>
156
148
</varlistentry>
149
+ </variablelist>
150
+ </para>
157
151
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>
158
166
<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>
161
169
<listitem>
162
170
<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.
164
174
</para>
165
175
</listitem>
166
176
</varlistentry>
167
177
168
178
<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>
170
181
<listitem>
171
182
<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.
176
185
</para>
177
186
</listitem>
178
187
</varlistentry>
179
188
180
189
<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>
182
192
<listitem>
183
193
<para>
184
- This optionally specifies a comment to be associated with the newly created
185
- database.
194
+ User name to connect as
186
195
</para>
187
196
</listitem>
188
197
</varlistentry>
189
198
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>
190
208
</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.
203
209
</para>
210
+
204
211
</refsect1>
205
212
206
213
0 commit comments