11<!--
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 $
33PostgreSQL documentation
44-->
55
@@ -237,6 +237,16 @@ PostgreSQL documentation
237237 <title>Environment</title>
238238
239239 <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+
240250 <varlistentry>
241251 <term><envar>PGHOST</envar></term>
242252 <term><envar>PGPORT</envar></term>
@@ -246,7 +256,7 @@ PostgreSQL documentation
246256 <para>
247257 Default connection parameters. <envar>PGUSER</envar> also
248258 determines the name of the database to create, if it is not
249- specifiedin the command line.
259+ specifiedon the command line or by <envar>PGDATABASE</envar> .
250260 </para>
251261 </listitem>
252262 </varlistentry>
@@ -257,7 +267,6 @@ PostgreSQL documentation
257267 <refsect1 id="R1-APP-CREATEDB-2">
258268 <title>Examples</title>
259269
260- <informalexample>
261270 <para>
262271 To create the database <literal>demo</literal> using the default
263272 database server:
@@ -268,9 +277,7 @@ PostgreSQL documentation
268277 The response is the same as you would have gotten from running the
269278 <command>CREATE DATABASE</command> <acronym>SQL</acronym> command.
270279 </para>
271- </informalexample>
272280
273- <informalexample>
274281 <para>
275282 To create the database <literal>demo</literal> using the
276283 server on host <literal>eden</>, port 5000, using the
@@ -282,7 +289,6 @@ PostgreSQL documentation
282289<computeroutput>CREATE DATABASE</computeroutput>
283290</screen>
284291 </para>
285- </informalexample>
286292 </refsect1>
287293
288294