Skip to content
Snippets Groups Projects
Commit f19238e0 authored by Tom Lane's avatar Tom Lane
Browse files

Prevent vacuumdb from trying to vacuum template0.

parent 10fb290a
No related branches found
No related tags found
No related merge requests found
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
# #
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/bin/scripts/Attic/vacuumdb,v 1.14 2001/01/08 20:32:27 tgl Exp $ # $Header: /cvsroot/pgsql/src/bin/scripts/Attic/vacuumdb,v 1.15 2001/01/08 23:02:36 tgl Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
...@@ -142,7 +142,7 @@ if [ "$alldb" ]; then ...@@ -142,7 +142,7 @@ if [ "$alldb" ]; then
echo "$CMDNAME: cannot vacuum all databases and a specific one at the same time" 1>&2 echo "$CMDNAME: cannot vacuum all databases and a specific one at the same time" 1>&2
exit 1 exit 1
fi fi
dbname=`${PATHNAME}psql $PSQLOPT -q -t -A -d template1 -c 'SELECT datname FROM pg_database'` dbname=`${PATHNAME}psql $PSQLOPT -q -t -A -d template1 -c 'SELECT datname FROM pg_database WHERE datallowconn'`
elif [ -z "$dbname" ]; then elif [ -z "$dbname" ]; then
echo "$CMDNAME: missing required argument: database name" 1>&2 echo "$CMDNAME: missing required argument: database name" 1>&2
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment