File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 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/31 19: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
3434BASENAME=` basename " $0 " `
3535PHASE=" "
3636
37- if [ " $# " -eq 1 ]
38- then
37+ while [ " $# " -ne 0 ]
38+ do
3939 if [ " X$1 " = " X-1" ]
4040 then PHASE=" 1"
4141 shift
4646 then PGDATA=" $2 "
4747 shift 2
4848 fi
49- fi
49+ done
5050
5151if [ " $PHASE " = " " ]
5252then echo " You must run $BASENAME in either mode 1 or mode 2." 1>&2
You can’t perform that action at this time.
0 commit comments