File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 11
11
#
12
12
#
13
13
# IDENTIFICATION
14
- # $Header: /cvsroot/pgsql/src/bin/scripts/Attic/vacuumdb,v 1.6 1999/12/18 08:39:12 momjian Exp $
14
+ # $Header: /cvsroot/pgsql/src/bin/scripts/Attic/vacuumdb,v 1.7 1999/12/18 08:46:44 momjian Exp $
15
15
#
16
16
# -------------------------------------------------------------------------
17
17
@@ -22,6 +22,7 @@ verbose=
22
22
analyze=
23
23
table=
24
24
dbname=
25
+ alldb=
25
26
26
27
while [ $# -gt 0 ]
27
28
do
86
87
analyze=" ANALYZE "
87
88
;;
88
89
--alldb|-a)
89
- dbname= " ` psql $PASSWDOPT $AUTHOPT $PGHOSTOPT $PGPORTOPT -q -t -A -d template1 -c ' SELECT datname FROM pg_database ' ` "
90
+ alldb=Y
90
91
;;
91
92
--table|-t)
92
93
table=" $2 "
@@ -132,6 +133,10 @@ if [ "$usage" ]; then
132
133
exit 1
133
134
fi
134
135
136
+ if [ ! -z " $alldb " ]; then
137
+ dbname=" ` psql $PASSWDOPT $AUTHOPT $PGHOSTOPT $PGPORTOPT -q -t -A -d template1 -c ' SELECT datname FROM pg_database' ` "
138
+ fi
139
+
135
140
if [ -z " $dbname " ]; then
136
141
echo " $CMDNAME : Missing required argument database name. Try -? for help."
137
142
exit 1
You can’t perform that action at this time.
0 commit comments