summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian2002-01-13 05:36:42 +0000
committerBruce Momjian2002-01-13 05:36:42 +0000
commit4b20cc10326a79289a223fc2f639b52e7f816f7e (patch)
tree43dfccdaaf1bd68a9c9fb5071881207b8ea1c037
parent11b3e562234202faa70879ebbce08f501bd2a42c (diff)
Now works for 7.1 databases.
-rwxr-xr-xsrc/bin/pg_dump/pg_upgrade8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/bin/pg_dump/pg_upgrade b/src/bin/pg_dump/pg_upgrade
index 42696b06c35..8ddf2368de0 100755
--- a/src/bin/pg_dump/pg_upgrade
+++ b/src/bin/pg_dump/pg_upgrade
@@ -3,7 +3,7 @@
# pg_upgrade: update a database without needing a full dump/reload cycle.
# 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
# below for each new PostgreSQL release.
@@ -191,14 +191,14 @@ $0 aborted." 1>&2
$9 >= 2147483646 &&
$9 <= 2147483648)
{
- for(i=1; i < NF; i++)
+ for(i=1; i <= NF; i++)
{
if (i != 9)
printf "%s ", $i;
else
printf "%s ", "9223372036854775807";
}
- print;
+ print "";
}
else print $0;
}' > "$INFODIR"/schema
@@ -261,6 +261,8 @@ $0 aborted." 1>&2
$0 aborted." 1>&2
exit 1
fi
+ echo
+ echo
echo "Plase 1 completed.
Continue with the steps outlined in the $0 manual page."
exit 0