File tree 2 files changed +10
-2
lines changed
2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 1
1
<!--
2
- $Header: /cvsroot/pgsql/doc/src/sgml/ref/Attic/initlocation.sgml,v 1.8 2000/05/26 02:07:15 momjian Exp $
2
+ $Header: /cvsroot/pgsql/doc/src/sgml/ref/Attic/initlocation.sgml,v 1.9 2000/05/26 15:47:17 momjian Exp $
3
3
Postgres documentation
4
4
-->
5
5
@@ -95,6 +95,11 @@ initlocation <replaceable class="parameter">directory</replaceable>
95
95
To create a database in an alternate location, using an environment variable:
96
96
<programlisting>
97
97
$ export PGDATA2=/opt/postgres/data
98
+ </programlisting>
99
+ Start and stop postmaster so it sees the $PGDATA2 environment variable.
100
+ The system must be configured so the postmaster sees $PGDATA2 every time it
101
+ starts.
102
+ <programlisting>
98
103
$ initlocation PGDATA2
99
104
$ createdb -D 'PGDATA2' 'testdb'
100
105
</programlisting>
Original file line number Diff line number Diff line change 3
3
*
4
4
* Copyright 2000 by PostgreSQL Global Development Group
5
5
*
6
- * $Header: /cvsroot/pgsql/src/bin/psql/help.c,v 1.30 2000/05/12 16:13:44 petere Exp $
6
+ * $Header: /cvsroot/pgsql/src/bin/psql/help.c,v 1.31 2000/05/26 15:47:18 momjian Exp $
7
7
*/
8
8
#include "postgres.h"
9
9
#include "help.h"
@@ -300,6 +300,9 @@ helpSQL(const char *topic)
300
300
"Description: %s\n"
301
301
"Syntax:\n%s\n\n" ,
302
302
QL_HELP [i ].cmd , QL_HELP [i ].help , QL_HELP [i ].syntax );
303
+ /* If we have an exact match, exit. Fixes \h SELECT */
304
+ if (strcasecmp (topic , QL_HELP [i ].cmd ) == 0 )
305
+ break ;
303
306
}
304
307
}
305
308
You can’t perform that action at this time.
0 commit comments