Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
be6e7717
Commit
be6e7717
authored
May 26, 2000
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix \h SELECT to not show SELECT INTO.
parent
23b0387a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
doc/src/sgml/ref/initlocation.sgml
doc/src/sgml/ref/initlocation.sgml
+6
-1
src/bin/psql/help.c
src/bin/psql/help.c
+4
-1
No files found.
doc/src/sgml/ref/initlocation.sgml
View file @
be6e7717
<!--
<!--
$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>
...
@@ -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>
...
...
src/bin/psql/help.c
View file @
be6e7717
...
@@ -3,7 +3,7 @@
...
@@ -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.3
0 2000/05/12 16:13:44 petere
Exp $
* $Header: /cvsroot/pgsql/src/bin/psql/help.c,v 1.3
1 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)
...
@@ -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
;
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment