Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
f19238e0
Commit
f19238e0
authored
Jan 08, 2001
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prevent vacuumdb from trying to vacuum template0.
parent
10fb290a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/bin/scripts/vacuumdb
src/bin/scripts/vacuumdb
+2
-2
No files found.
src/bin/scripts/vacuumdb
View file @
f19238e0
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
#
#
#
#
# IDENTIFICATION
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/bin/scripts/Attic/vacuumdb,v 1.1
4 2001/01/08 20:32:27
tgl Exp $
# $Header: /cvsroot/pgsql/src/bin/scripts/Attic/vacuumdb,v 1.1
5 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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment