index 92b57502ef66c4f23a66eebb60ab0ddd41e9c7af..3f0bbad57930057c4f66e85d747dd141c5f60a2b 100644 (file)
<!--
-$Header: /cvsroot/pgsql/doc/src/sgml/ref/Attic/initlocation.sgml,v 1.8 2000年05月26日 02:07:15 momjian Exp $
+$Header: /cvsroot/pgsql/doc/src/sgml/ref/Attic/initlocation.sgml,v 1.9 2000年05月26日 15:47:17 momjian Exp $
Postgres documentation
-->
@@ -95,6 +95,11 @@ initlocation <replaceable class="parameter">directory</replaceable>
To create a database in an alternate location, using an environment variable:
<programlisting>
$ export PGDATA2=/opt/postgres/data
+</programlisting>
+Start and stop postmaster so it sees the $PGDATA2 environment variable.
+The system must be configured so the postmaster sees $PGDATA2 every time it
+starts.
+<programlisting>
$ initlocation PGDATA2
$ createdb -D 'PGDATA2' 'testdb'
</programlisting>
index cce149869ffe731e4b43cd554bc314d52018d27a..8e988c47d9c288d670cfc6ea868f70fb8afdf456 100644 (file)
*
* Copyright 2000 by PostgreSQL Global Development Group
*
- * $Header: /cvsroot/pgsql/src/bin/psql/help.c,v 1.30 2000年05月12日 16:13:44 petere Exp $
+ * $Header: /cvsroot/pgsql/src/bin/psql/help.c,v 1.31 2000年05月26日 15:47:18 momjian Exp $
*/
#include "postgres.h"
#include "help.h"
"Description: %s\n"
"Syntax:\n%s\n\n",
QL_HELP[i].cmd, QL_HELP[i].help, QL_HELP[i].syntax);
+ /* If we have an exact match, exit. Fixes \h SELECT */
+ if (strcasecmp(topic, QL_HELP[i].cmd) == 0)
+ break;
}
}