|
1 | 1 | <!--
|
2 |
| -$Header: /cvsroot/pgsql/doc/src/sgml/ref/createdb.sgml,v 1.24 2002/01/20 22:19:56 petere Exp $ |
| 2 | +$Header: /cvsroot/pgsql/doc/src/sgml/ref/createdb.sgml,v 1.25 2002/02/24 23:27:57 tgl Exp $ |
3 | 3 | PostgreSQL documentation
|
4 | 4 | -->
|
5 | 5 |
|
@@ -92,6 +92,15 @@ PostgreSQL documentation
|
92 | 92 | </listitem>
|
93 | 93 | </varlistentry>
|
94 | 94 |
|
| 95 | + <varlistentry> |
| 96 | + <term>-O, --owner <replaceable class="parameter">owner</replaceable></term> |
| 97 | + <listitem> |
| 98 | + <para> |
| 99 | + Specifies the database user who will own the new database. |
| 100 | + </para> |
| 101 | + </listitem> |
| 102 | + </varlistentry> |
| 103 | + |
95 | 104 | <varlistentry>
|
96 | 105 | <term>-D, --location <replaceable class="parameter">datadir</replaceable></term>
|
97 | 106 | <listitem>
|
@@ -144,12 +153,13 @@ PostgreSQL documentation
|
144 | 153 |
|
145 | 154 | </variablelist>
|
146 | 155 |
|
147 |
| - The options <literal>-h</literal>, <literal>-p</literal>, <literal>-U</literal>, |
148 |
| - <literal>-W</literal>, and <literal>-e</literal> are passed on literally to |
| 156 | + The options <option>-h</option>, <option>-p</option>, <option>-U</option>, |
| 157 | + <option>-W</option>, and <option>-e</option> are passed on literally to |
149 | 158 | <xref linkend="app-psql">.
|
150 | 159 |
|
151 |
| - The options <literal>-D</literal>, <literal>-T</literal>, and |
152 |
| - <literal>-E</literal> are converted into options for the underlying |
| 160 | + The options <option>-O</option>, <option>-D</option>, |
| 161 | + <option>-T</option>, and |
| 162 | + <option>-E</option> are converted into options for the underlying |
153 | 163 | SQL command <xref linkend="SQL-CREATEDATABASE"
|
154 | 164 | endterm="SQL-CREATEDATABASE-title">; see there for more information
|
155 | 165 | about them.
|
@@ -202,7 +212,14 @@ PostgreSQL documentation
|
202 | 212 | </title>
|
203 | 213 | <para>
|
204 | 214 | <application>createdb</application> creates a new <productname>PostgreSQL</productname>
|
205 |
| - database. The user who executes this command becomes the database owner. |
| 215 | + database. |
| 216 | + </para> |
| 217 | + |
| 218 | + <para> |
| 219 | + Normally, the database user who executes this command becomes the owner of |
| 220 | + the new database. |
| 221 | + However a different owner can be specified via the <option>-O</option> |
| 222 | + option, if the executing user has appropriate privileges. |
206 | 223 | </para>
|
207 | 224 |
|
208 | 225 | <para>
|
|
0 commit comments