|
3 | 3 | # pg_upgrade: update a database without needing a full dump/reload cycle. |
4 | 4 | # CAUTION: Read the manual page before trying to use this! |
5 | 5 |
|
6 | | -# $Header: /cvsroot/pgsql/contrib/pg_upgrade/Attic/pg_upgrade,v 1.5 2002/01/1504:55:26 momjian Exp $ |
| 6 | +# $Header: /cvsroot/pgsql/contrib/pg_upgrade/Attic/pg_upgrade,v 1.6 2002/01/1505:03:25 momjian Exp $ |
7 | 7 | # |
8 | 8 | # To migrate this to newer versions of PostgreSQL: |
9 | 9 | #1) Update the version numbers at the top of the file |
@@ -31,7 +31,7 @@ CUR_VERSION="7.2" |
31 | 31 |
|
32 | 32 | trap"rm -f /tmp/$$.*" 0 1 2 3 15 |
33 | 33 |
|
34 | | -BASENAME=`basename"$0` |
| 34 | +BASENAME=`basename"$0"` |
35 | 35 | PHASE="" |
36 | 36 |
|
37 | 37 | if ["$#"-eq 1 ] |
|
294 | 294 | fi |
295 | 295 | echo |
296 | 296 | echo |
297 | | -echo"Plase 1 completed." |
| 297 | +echo"$BASENAME phase 1 completed." |
298 | 298 | echo"Continue with the steps outlined in the$BASENAME manual page." |
299 | 299 | exit 0 |
300 | 300 | fi |
@@ -545,12 +545,13 @@ if [ "$SRC_VERSION" = "7.1" -o \ |
545 | 545 | thenecho"Set sequence values..." |
546 | 546 | psql -d template1 -At<"$INFODIR"/setval |
547 | 547 | if [$?-ne 0 ] |
548 | | -thenecho"There were errors during int4 sequencerestore. Exiting."1>&2 |
| 548 | +thenecho"There were errors during int4 sequencerestoration. Exiting."1>&2 |
549 | 549 | exit 1 |
550 | 550 | fi |
551 | 551 | fi |
552 | 552 |
|
553 | 553 | echo |
554 | 554 | echo |
| 555 | +echo"$BASENAME phase 2 completed." |
555 | 556 | echo"You may remove the old database files with 'rm -r$INFODIR'." |
556 | 557 | exit 0 |