Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf19238e

Browse files
committed
Prevent vacuumdb from trying to vacuum template0.
1 parent10fb290 commitf19238e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/bin/scripts/vacuumdb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#
1212
#
1313
# IDENTIFICATION
14-
# $Header: /cvsroot/pgsql/src/bin/scripts/Attic/vacuumdb,v 1.14 2001/01/0820:32:27 tgl Exp $
14+
# $Header: /cvsroot/pgsql/src/bin/scripts/Attic/vacuumdb,v 1.15 2001/01/0823:02:36 tgl Exp $
1515
#
1616
#-------------------------------------------------------------------------
1717

@@ -142,7 +142,7 @@ if [ "$alldb" ]; then
142142
echo"$CMDNAME: cannot vacuum all databases and a specific one at the same time"1>&2
143143
exit 1
144144
fi
145-
dbname=`${PATHNAME}psql$PSQLOPT -q -t -A -d template1 -c'SELECT datname FROM pg_database'`
145+
dbname=`${PATHNAME}psql$PSQLOPT -q -t -A -d template1 -c'SELECT datname FROM pg_database WHERE datallowconn'`
146146

147147
elif [-z"$dbname" ];then
148148
echo"$CMDNAME: missing required argument: database name"1>&2

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp