|
1 | 1 | <!--
|
2 |
| -$Header: /cvsroot/pgsql/doc/src/sgml/ref/createdb.sgml,v 1.16 2000/12/25 23:15:26 petere Exp $ |
| 2 | +$Header: /cvsroot/pgsql/doc/src/sgml/ref/createdb.sgml,v 1.17 2001/02/18 17:53:54 tgl Exp $ |
3 | 3 | Postgres documentation
|
4 | 4 | -->
|
5 | 5 |
|
@@ -41,7 +41,7 @@ Postgres documentation
|
41 | 41 | Specifies the hostname of the machine on which the
|
42 | 42 | <application>postmaster</application>
|
43 | 43 | is running. If host begins with a slash, it is used
|
44 |
| - as the directory for the unix domain socket. |
| 44 | + as the directory for the Unix-domain socket. |
45 | 45 | </para>
|
46 | 46 | </listitem>
|
47 | 47 | </varlistentry>
|
@@ -98,17 +98,26 @@ Postgres documentation
|
98 | 98 | <term>-D, --location <replaceable class="parameter">datadir</replaceable></term>
|
99 | 99 | <listitem>
|
100 | 100 | <para>
|
101 |
| - Specifies the alternative database location. See also <xref |
| 101 | + Specifies the alternative location for the database. See also <xref |
102 | 102 | linkend="app-initlocation">.
|
103 | 103 | </para>
|
104 | 104 | </listitem>
|
105 | 105 | </varlistentry>
|
106 | 106 |
|
| 107 | + <varlistentry> |
| 108 | + <term>-T, --template <replaceable class="parameter">template</replaceable></term> |
| 109 | + <listitem> |
| 110 | + <para> |
| 111 | + Specifies the template database from which to build this database. |
| 112 | + </para> |
| 113 | + </listitem> |
| 114 | + </varlistentry> |
| 115 | + |
107 | 116 | <varlistentry>
|
108 | 117 | <term>-E, --encoding <replaceable class="parameter">encoding</replaceable></term>
|
109 | 118 | <listitem>
|
110 | 119 | <para>
|
111 |
| - Specifies the character encoding scheme to be used with this database. |
| 120 | + Specifies the character encoding scheme to be used in this database. |
112 | 121 | </para>
|
113 | 122 | </listitem>
|
114 | 123 | </varlistentry>
|
@@ -140,6 +149,12 @@ Postgres documentation
|
140 | 149 | The options <literal>-h</literal>, <literal>-p</literal>, <literal>-U</literal>,
|
141 | 150 | <literal>-W</literal>, and <literal>-e</literal> are passed on literally to
|
142 | 151 | <xref linkend="app-psql">.
|
| 152 | + |
| 153 | + The options <literal>-D</literal>, <literal>-T</literal>, and |
| 154 | + <literal>-E</literal> are converted into options for the underlying |
| 155 | + SQL command <xref linkend="SQL-CREATEDATABASE" |
| 156 | + endterm="SQL-CREATEDATABASE-title">, which see for more information |
| 157 | + about them. |
143 | 158 | </para>
|
144 | 159 | </refsect2>
|
145 | 160 |
|
@@ -168,7 +183,7 @@ Postgres documentation
|
168 | 183 | <listitem>
|
169 | 184 | <para>
|
170 | 185 | The comment/description for the database could not be created.
|
171 |
| - the database itself will have been created already. You can use the |
| 186 | + The database itself will have been created already. You can use the |
172 | 187 | <acronym>SQL</acronym> command <command>COMMENT ON DATABASE</command> to
|
173 | 188 | create the comment later on.
|
174 | 189 | </para>
|
@@ -199,10 +214,10 @@ Postgres documentation
|
199 | 214 | the <productname>Postgres</productname> interactive terminal
|
200 | 215 | <xref linkend="APP-PSQL">. Thus, there is nothing
|
201 | 216 | special about creating databases via this or other methods. This means
|
202 |
| - that the <application>psql</application> must be found by the script and that |
203 |
| - a database server is running at the targeted host. Also, any default |
| 217 | + that the <application>psql</application> program must be found by the script and that |
| 218 | + a database server must be running at the targeted port. Also, any default |
204 | 219 | settings and environment variables available to <application>psql</application>
|
205 |
| - and the <application>libpq</application> front-end library do apply. |
| 220 | + and the <application>libpq</application> front-end library will apply. |
206 | 221 | </para>
|
207 | 222 | </refsect1>
|
208 | 223 |
|
|
0 commit comments