Now works for 7.1 databases.

This commit is contained in:
Bruce Momjian 2002-01-13 05:36:42 +00:00
parent 11b3e56223
commit 4b20cc1032

View File

@ -3,7 +3,7 @@
# pg_upgrade: update a database without needing a full dump/reload cycle. # pg_upgrade: update a database without needing a full dump/reload cycle.
# CAUTION: Read the manual page before trying to use this! # CAUTION: Read the manual page before trying to use this!
# $Header: /cvsroot/pgsql/src/bin/pg_dump/Attic/pg_upgrade,v 1.32 2002/01/13 04:55:44 momjian Exp $ # $Header: /cvsroot/pgsql/src/bin/pg_dump/Attic/pg_upgrade,v 1.33 2002/01/13 05:36:42 momjian Exp $
# #
# NOTE: we must be sure to update the version-checking code a few dozen lines # NOTE: we must be sure to update the version-checking code a few dozen lines
# below for each new PostgreSQL release. # below for each new PostgreSQL release.
@ -191,14 +191,14 @@ $0 aborted." 1>&2
$9 >= 2147483646 && $9 >= 2147483646 &&
$9 <= 2147483648) $9 <= 2147483648)
{ {
for(i=1; i < NF; i++) for(i=1; i <= NF; i++)
{ {
if (i != 9) if (i != 9)
printf "%s ", $i; printf "%s ", $i;
else else
printf "%s ", "9223372036854775807"; printf "%s ", "9223372036854775807";
} }
print; print "";
} }
else print $0; else print $0;
}' > "$INFODIR"/schema }' > "$INFODIR"/schema
@ -261,6 +261,8 @@ $0 aborted." 1>&2
$0 aborted." 1>&2 $0 aborted." 1>&2
exit 1 exit 1
fi fi
echo
echo
echo "Plase 1 completed. echo "Plase 1 completed.
Continue with the steps outlined in the $0 manual page." Continue with the steps outlined in the $0 manual page."
exit 0 exit 0