Fix \h SELECT to not show SELECT INTO.
This commit is contained in:
parent
23b0387a94
commit
be6e7717db
@ -1,5 +1,5 @@
|
|||||||
<!--
|
<!--
|
||||||
$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
|
Postgres documentation
|
||||||
-->
|
-->
|
||||||
|
|
||||||
@ -95,6 +95,11 @@ initlocation <replaceable class="parameter">directory</replaceable>
|
|||||||
To create a database in an alternate location, using an environment variable:
|
To create a database in an alternate location, using an environment variable:
|
||||||
<programlisting>
|
<programlisting>
|
||||||
$ export PGDATA2=/opt/postgres/data
|
$ 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
|
$ initlocation PGDATA2
|
||||||
$ createdb -D 'PGDATA2' 'testdb'
|
$ createdb -D 'PGDATA2' 'testdb'
|
||||||
</programlisting>
|
</programlisting>
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
*
|
*
|
||||||
* Copyright 2000 by PostgreSQL Global Development Group
|
* 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 "postgres.h"
|
||||||
#include "help.h"
|
#include "help.h"
|
||||||
@ -300,6 +300,9 @@ helpSQL(const char *topic)
|
|||||||
"Description: %s\n"
|
"Description: %s\n"
|
||||||
"Syntax:\n%s\n\n",
|
"Syntax:\n%s\n\n",
|
||||||
QL_HELP[i].cmd, QL_HELP[i].help, QL_HELP[i].syntax);
|
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user