Add -g as synonmym for --globals-only in pg_dumpall. Add info about
authorBruce Momjian
Fri, 9 Feb 2001 17:16:57 +0000 (17:16 +0000)
committerBruce Momjian
Fri, 9 Feb 2001 17:16:57 +0000 (17:16 +0000)
-c,--clean option to manual page.

HISTORY
doc/src/sgml/ref/pg_dumpall.sgml
doc/src/sgml/release.sgml
src/bin/pg_dump/pg_dumpall.sh

diff --git a/HISTORY b/HISTORY
index e1a5eecc869c1af2bbb003b6aa1a1915a7602f2e..ba079e1b98999bab255e161c16d823d1ead9c214 100644 (file)
--- a/HISTORY
+++ b/HISTORY
@@ -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)
index 2e270b6dc60adec0e82def25035063d78f2d00cc..35f786aaa589141a73381cdd94d1a23cb19f42c6 100644 (file)
@@ -1,5 +1,5 @@
 
 
@@ -25,7 +25,7 @@ Postgres documentation
    -c--clean
    -h host
    -p port
-   <arg>--globals-only>
+   <group>-g--globals-only>
   
  
 
@@ -71,6 +71,16 @@ Postgres documentation
     pg_dumpall accepts the following
     command line arguments:
 
+    
+     
+      -c, --clean
+      
+       
+   Clean (drop) database before creating schema.
+       
+      
+     
+
     
      
       -h host
@@ -97,7 +107,7 @@ Postgres documentation
      
 
      
-      --globals-only
+      -g, --globals-only
       
        
    Only dump global objects (users and groups), no databases.
index 8bb07cfb78a87a2c960357087bb9f506fc8ba6ea..18b66a53d0176cd80a8d90feb8811bb98d7cfb16 100644 (file)
@@ -1,5 +1,5 @@
 
 
  
@@ -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)
index a3b80fe251db731cc96784ce20e4d324265b1012..708e165bfeaf39eccaa87e822052d20360963310 100644 (file)
@@ -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.10 2001/01/25 17:28:15 petere Exp $
+# $Header: /cvsroot/pgsql/src/bin/pg_dump/Attic/pg_dumpall.sh,v 1.11 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 ."