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
b483ad84
Commit
b483ad84
authored
Feb 09, 2001
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add -g as synonmym for --globals-only in pg_dumpall. Add info about
-c,--clean option to manual page.
parent
59e321dd
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
11 deletions
+20
-11
HISTORY
HISTORY
+0
-1
doc/src/sgml/ref/pg_dumpall.sgml
doc/src/sgml/ref/pg_dumpall.sgml
+13
-3
doc/src/sgml/release.sgml
doc/src/sgml/release.sgml
+1
-2
src/bin/pg_dump/pg_dumpall.sh
src/bin/pg_dump/pg_dumpall.sh
+6
-5
No files found.
HISTORY
View file @
b483ad84
...
...
@@ -159,7 +159,6 @@ Allow postmaster to listen on a specific IP address (David J. MacKenzie)
Allow socket path name to be specified in hostname by using leading slash
(David J. MacKenzie)
Allow CREATE DATABASE to specify template database (Tom)
New pg_dump --globals-only option (Peter E)
New utility to convert MySQL schema dumps to SQL92 and PostgreSQL (Thomas)
New /contrib/rserv replication toolkit (Vadim)
New file format for COPY BINARY (Tom)
...
...
doc/src/sgml/ref/pg_dumpall.sgml
View file @
b483ad84
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/ref/pg_dumpall.sgml,v 1.1
8 2000/12/25 23:15:26 petere
Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/ref/pg_dumpall.sgml,v 1.1
9 2001/02/09 17:16:57 momjian
Exp $
Postgres documentation
-->
...
...
@@ -25,7 +25,7 @@ Postgres documentation
<group><arg>-c</arg><arg>--clean</arg></group>
<arg>-h <replaceable>host</replaceable></arg>
<arg>-p <replaceable>port</replaceable></arg>
<
arg>--globals-only</arg
>
<
group><arg>-g</arg><arg>--globals-only</arg></group
>
</cmdsynopsis>
</refsynopsisdiv>
...
...
@@ -71,6 +71,16 @@ Postgres documentation
<application>pg_dumpall</application> accepts the following
command line arguments:
<variablelist>
<varlistentry>
<term>-c, --clean</term>
<listitem>
<para>
Clean (drop) database before creating schema.
</para>
</listitem>
</varlistentry>
<variablelist>
<varlistentry>
<term>-h <replaceable>host</replaceable></term>
...
...
@@ -97,7 +107,7 @@ Postgres documentation
</varlistentry>
<varlistentry>
<term>--globals-only</term>
<term>-
g, -
-globals-only</term>
<listitem>
<para>
Only dump global objects (users and groups), no databases.
...
...
doc/src/sgml/release.sgml
View file @
b483ad84
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/release.sgml,v 1.7
6 2001/02/03 21:50:45
momjian Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/release.sgml,v 1.7
7 2001/02/09 17:16:56
momjian Exp $
-->
<appendix id="release">
...
...
@@ -235,7 +235,6 @@ Allow postmaster to listen on a specific IP address (David J. MacKenzie)
Allow socket path name to be specified in hostname by using leading slash
(David J. MacKenzie)
Allow CREATE DATABASE to specify template database (Tom)
New pg_dump --globals-only option (Peter E)
New utility to convert MySQL schema dumps to SQL92 and PostgreSQL (Thomas)
New /contrib/rserv replication toolkit (Vadim)
New file format for COPY BINARY (Tom)
...
...
src/bin/pg_dump/pg_dumpall.sh
View file @
b483ad84
...
...
@@ -6,7 +6,7 @@
# and "pg_group" tables, which belong to the whole installation rather
# than any one individual database.
#
# $Header: /cvsroot/pgsql/src/bin/pg_dump/Attic/pg_dumpall.sh,v 1.1
0 2001/01/25 17:28:15 petere
Exp $
# $Header: /cvsroot/pgsql/src/bin/pg_dump/Attic/pg_dumpall.sh,v 1.1
1 2001/02/09 17:16:57 momjian
Exp $
CMDNAME
=
`
basename
$0
`
...
...
@@ -75,7 +75,8 @@ cleanschema=
globals_only
=
#
# Scan options. We're interested in the -h (host), -p (port), and -c (clean) options.
# Scan options. We're interested in the -h (host), -p (port),
# -c (clean), and -g (global) options.
# The rest we pass to pg_dump, which may or may not be useful.
#
while
[
$#
-gt
0
]
;
do
...
...
@@ -110,7 +111,7 @@ while [ $# -gt 0 ] ; do
cleanschema
=
yes
pgdumpextraopts
=
"
$pgdumpextraopts
-c"
;;
--globals-only
)
-
g
|
-
-globals-only
)
globals_only
=
yes
;;
*
)
...
...
@@ -125,13 +126,13 @@ if [ "$usage" ] ; then
echo
"
$CMDNAME
extracts a PostgreSQL database cluster into an SQL script file."
echo
echo
"Usage:"
echo
"
$CMDNAME
[ -c ] [ -h HOSTNAME ] [ -p PORT ] [ -
-globals-only
]"
echo
"
$CMDNAME
[ -c ] [ -h HOSTNAME ] [ -p PORT ] [ -
g
]"
echo
echo
"Options:"
echo
" -c, --clean Clean (drop) schema prior to create"
echo
" -h, --host=HOSTNAME Server host name"
echo
" -p, --port=PORT Server port number"
echo
" -
-globals-only
Only dump global objects, no databases"
echo
" -
g, --globals-only
Only dump global objects, no databases"
echo
"Any extra options will be passed to pg_dump."
echo
echo
"Report bugs to <pgsql-bugs@postgresql.org>."
...
...
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