1
1
<!--
2
- $Header: /cvsroot/pgsql/doc/src/sgml/ref/createdb.sgml,v 1.27 2002/07/28 15:22:20 petere Exp $
2
+ $Header: /cvsroot/pgsql/doc/src/sgml/ref/createdb.sgml,v 1.28 2002/08/10 16:57:31 petere Exp $
3
3
PostgreSQL documentation
4
4
-->
5
5
@@ -237,6 +237,16 @@ PostgreSQL documentation
237
237
<title>Environment</title>
238
238
239
239
<variablelist>
240
+ <varlistentry>
241
+ <term><envar>PGDATABASE</envar></term>
242
+ <listitem>
243
+ <para>
244
+ If set, the name of the database to create, unless overridden on
245
+ the command line.
246
+ </para>
247
+ </listitem>
248
+ </varlistentry>
249
+
240
250
<varlistentry>
241
251
<term><envar>PGHOST</envar></term>
242
252
<term><envar>PGPORT</envar></term>
@@ -246,7 +256,7 @@ PostgreSQL documentation
246
256
<para>
247
257
Default connection parameters. <envar>PGUSER</envar> also
248
258
determines the name of the database to create, if it is not
249
- specified in the command line.
259
+ specified on the command line or by <envar>PGDATABASE</envar> .
250
260
</para>
251
261
</listitem>
252
262
</varlistentry>
@@ -257,7 +267,6 @@ PostgreSQL documentation
257
267
<refsect1 id="R1-APP-CREATEDB-2">
258
268
<title>Examples</title>
259
269
260
- <informalexample>
261
270
<para>
262
271
To create the database <literal>demo</literal> using the default
263
272
database server:
@@ -268,9 +277,7 @@ PostgreSQL documentation
268
277
The response is the same as you would have gotten from running the
269
278
<command>CREATE DATABASE</command> <acronym>SQL</acronym> command.
270
279
</para>
271
- </informalexample>
272
280
273
- <informalexample>
274
281
<para>
275
282
To create the database <literal>demo</literal> using the
276
283
server on host <literal>eden</>, port 5000, using the
@@ -282,7 +289,6 @@ PostgreSQL documentation
282
289
<computeroutput>CREATE DATABASE</computeroutput>
283
290
</screen>
284
291
</para>
285
- </informalexample>
286
292
</refsect1>
287
293
288
294
0 commit comments