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

Commit966e647

Browse files
committed
Fix flag handling of pg_upgrade.
1 parent15c30b6 commit966e647

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎contrib/pg_upgrade/pg_upgrade

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# pg_upgrade: update a database without needing a full dump/reload cycle.
44
# CAUTION: Read the manual page before trying to use this!
55

6-
# $Header: /cvsroot/pgsql/contrib/pg_upgrade/Attic/pg_upgrade,v 1.11 2002/01/3119:13:53 momjian Exp $
6+
# $Header: /cvsroot/pgsql/contrib/pg_upgrade/Attic/pg_upgrade,v 1.12 2002/02/11 15:19:33 momjian Exp $
77
#
88
# To migrate this to newer versions of PostgreSQL:
99
#1) Update the version numbers at the top of the file
@@ -34,8 +34,8 @@ trap "rm -f /tmp/$$.*" 0 1 2 3 15
3434
BASENAME=`basename"$0"`
3535
PHASE=""
3636

37-
if ["$#"-eq 1 ]
38-
then
37+
while ["$#"-ne 0 ]
38+
do
3939
if ["X$1"="X-1" ]
4040
thenPHASE="1"
4141
shift
@@ -46,7 +46,7 @@ then
4646
thenPGDATA="$2"
4747
shift 2
4848
fi
49-
fi
49+
done
5050

5151
if ["$PHASE"="" ]
5252
thenecho"You must run$BASENAME in either mode 1 or mode 2."1>&2

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp