Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit b483ad8

Browse files
committed
Add -g as synonmym for --globals-only in pg_dumpall. Add info about
-c,--clean option to manual page.
1 parent 59e321d commit b483ad8

File tree

4 files changed

+20
-11
lines changed

4 files changed

+20
-11
lines changed

HISTORY

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,6 @@ Allow postmaster to listen on a specific IP address (David J. MacKenzie)
159159
Allow socket path name to be specified in hostname by using leading slash
160160
(David J. MacKenzie)
161161
Allow CREATE DATABASE to specify template database (Tom)
162-
New pg_dump --globals-only option (Peter E)
163162
New utility to convert MySQL schema dumps to SQL92 and PostgreSQL (Thomas)
164163
New /contrib/rserv replication toolkit (Vadim)
165164
New file format for COPY BINARY (Tom)

doc/src/sgml/ref/pg_dumpall.sgml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/ref/pg_dumpall.sgml,v 1.18 2000/12/25 23:15:26 petere Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/ref/pg_dumpall.sgml,v 1.19 2001/02/09 17:16:57 momjian Exp $
33
Postgres documentation
44
-->
55

@@ -25,7 +25,7 @@ Postgres documentation
2525
<group><arg>-c</arg><arg>--clean</arg></group>
2626
<arg>-h <replaceable>host</replaceable></arg>
2727
<arg>-p <replaceable>port</replaceable></arg>
28-
<arg>--globals-only</arg>
28+
<group><arg>-g</arg><arg>--globals-only</arg></group>
2929
</cmdsynopsis>
3030
</refsynopsisdiv>
3131

@@ -71,6 +71,16 @@ Postgres documentation
7171
<application>pg_dumpall</application> accepts the following
7272
command line arguments:
7373

74+
<variablelist>
75+
<varlistentry>
76+
<term>-c, --clean</term>
77+
<listitem>
78+
<para>
79+
Clean (drop) database before creating schema.
80+
</para>
81+
</listitem>
82+
</varlistentry>
83+
7484
<variablelist>
7585
<varlistentry>
7686
<term>-h <replaceable>host</replaceable></term>
@@ -97,7 +107,7 @@ Postgres documentation
97107
</varlistentry>
98108

99109
<varlistentry>
100-
<term>--globals-only</term>
110+
<term>-g, --globals-only</term>
101111
<listitem>
102112
<para>
103113
Only dump global objects (users and groups), no databases.

doc/src/sgml/release.sgml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/release.sgml,v 1.76 2001/02/03 21:50:45 momjian Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/release.sgml,v 1.77 2001/02/09 17:16:56 momjian Exp $
33
-->
44

55
<appendix id="release">
@@ -235,7 +235,6 @@ Allow postmaster to listen on a specific IP address (David J. MacKenzie)
235235
Allow socket path name to be specified in hostname by using leading slash
236236
(David J. MacKenzie)
237237
Allow CREATE DATABASE to specify template database (Tom)
238-
New pg_dump --globals-only option (Peter E)
239238
New utility to convert MySQL schema dumps to SQL92 and PostgreSQL (Thomas)
240239
New /contrib/rserv replication toolkit (Vadim)
241240
New file format for COPY BINARY (Tom)

src/bin/pg_dump/pg_dumpall.sh

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# and "pg_group" tables, which belong to the whole installation rather
77
# than any one individual database.
88
#
9-
# $Header: /cvsroot/pgsql/src/bin/pg_dump/Attic/pg_dumpall.sh,v 1.10 2001/01/25 17:28:15 petere Exp $
9+
# $Header: /cvsroot/pgsql/src/bin/pg_dump/Attic/pg_dumpall.sh,v 1.11 2001/02/09 17:16:57 momjian Exp $
1010

1111
CMDNAME=`basename $0`
1212

@@ -75,7 +75,8 @@ cleanschema=
7575
globals_only=
7676

7777
#
78-
# Scan options. We're interested in the -h (host), -p (port), and -c (clean) options.
78+
# Scan options. We're interested in the -h (host), -p (port),
79+
# -c (clean), and -g (global) options.
7980
# The rest we pass to pg_dump, which may or may not be useful.
8081
#
8182
while [ $# -gt 0 ] ; do
@@ -110,7 +111,7 @@ while [ $# -gt 0 ] ; do
110111
cleanschema=yes
111112
pgdumpextraopts="$pgdumpextraopts -c"
112113
;;
113-
--globals-only)
114+
-g|--globals-only)
114115
globals_only=yes
115116
;;
116117
*)
@@ -125,13 +126,13 @@ if [ "$usage" ] ; then
125126
echo "$CMDNAME extracts a PostgreSQL database cluster into an SQL script file."
126127
echo
127128
echo "Usage:"
128-
echo " $CMDNAME [ -c ] [ -h HOSTNAME ] [ -p PORT ] [ --globals-only ]"
129+
echo " $CMDNAME [ -c ] [ -h HOSTNAME ] [ -p PORT ] [ -g ]"
129130
echo
130131
echo "Options:"
131132
echo " -c, --clean Clean (drop) schema prior to create"
132133
echo " -h, --host=HOSTNAME Server host name"
133134
echo " -p, --port=PORT Server port number"
134-
echo " --globals-only Only dump global objects, no databases"
135+
echo " -g, --globals-only Only dump global objects, no databases"
135136
echo "Any extra options will be passed to pg_dump."
136137
echo
137138
echo "Report bugs to <pgsql-bugs@postgresql.org>."

0 commit comments

Comments
 (0)