Skip to content

Commit be6e771

Browse files
committed
Fix \h SELECT to not show SELECT INTO.
1 parent 23b0387 commit be6e771

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

doc/src/sgml/ref/initlocation.sgml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
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 $
33
Postgres documentation
44
-->
55

@@ -95,6 +95,11 @@ initlocation <replaceable class="parameter">directory</replaceable>
9595
To create a database in an alternate location, using an environment variable:
9696
<programlisting>
9797
$ 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>
98103
$ initlocation PGDATA2
99104
$ createdb -D 'PGDATA2' 'testdb'
100105
</programlisting>

src/bin/psql/help.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright 2000 by PostgreSQL Global Development Group
55
*
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 $
77
*/
88
#include "postgres.h"
99
#include "help.h"
@@ -300,6 +300,9 @@ helpSQL(const char *topic)
300300
"Description: %s\n"
301301
"Syntax:\n%s\n\n",
302302
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;
303306
}
304307
}
305308

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy