Cleanup vacuumdb

This commit is contained in:
Bruce Momjian 1999-12-18 08:39:12 +00:00
parent 1c2257648a
commit d2cf8b4776

View File

@ -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
--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
--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;;