Commit d2cf8b47 authored by Bruce Momjian's avatar Bruce Momjian

Cleanup vacuumdb

parent 1c225764
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
# #
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/bin/scripts/Attic/vacuumdb,v 1.5 1999/12/18 08:34:50 momjian Exp $ # $Header: /cvsroot/pgsql/src/bin/scripts/Attic/vacuumdb,v 1.6 1999/12/18 08:39:12 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
...@@ -39,8 +39,6 @@ do ...@@ -39,8 +39,6 @@ do
--host=*) --host=*)
PSQLOPT="$PSQLOPT -h "`echo $1 | sed 's/^--host=//'` PSQLOPT="$PSQLOPT -h "`echo $1 | sed 's/^--host=//'`
;; ;;
--alldb|-a)
dbname="`psql $PASSWDOPT $AUTHOPT $PGHOSTOPT $PGPORTOPT -q -t -A -d template1 -c 'SELECT datname FROM pg_database'`";;
--port|-p) --port|-p)
PSQLOPT="$PSQLOPT -p $2" PSQLOPT="$PSQLOPT -p $2"
shift;; shift;;
...@@ -87,6 +85,9 @@ do ...@@ -87,6 +85,9 @@ do
--analyze|-z) --analyze|-z)
analyze="ANALYZE " analyze="ANALYZE "
;; ;;
--alldb|-a)
dbname="`psql $PASSWDOPT $AUTHOPT $PGHOSTOPT $PGPORTOPT -q -t -A -d template1 -c 'SELECT datname FROM pg_database'`"
;;
--table|-t) --table|-t)
table="$2" table="$2"
shift;; shift;;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment