Skip to content

Commit 4b20cc1

Browse files
committed
Now works for 7.1 databases.
1 parent 11b3e56 commit 4b20cc1

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/bin/pg_dump/pg_upgrade

Lines changed: 5 additions & 3 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/src/bin/pg_dump/Attic/pg_upgrade,v 1.32 2002/01/13 04:55:44 momjian Exp $
6+
# $Header: /cvsroot/pgsql/src/bin/pg_dump/Attic/pg_upgrade,v 1.33 2002/01/13 05:36:42 momjian Exp $
77
#
88
# NOTE: we must be sure to update the version-checking code a few dozen lines
99
# below for each new PostgreSQL release.
@@ -191,14 +191,14 @@ $0 aborted." 1>&2
191191
$9 >= 2147483646 &&
192192
$9 <= 2147483648)
193193
{
194-
for(i=1; i < NF; i++)
194+
for(i=1; i <= NF; i++)
195195
{
196196
if (i != 9)
197197
printf "%s ", $i;
198198
else
199199
printf "%s ", "9223372036854775807";
200200
}
201-
print;
201+
print "";
202202
}
203203
else print $0;
204204
}' > "$INFODIR"/schema
@@ -261,6 +261,8 @@ $0 aborted." 1>&2
261261
$0 aborted." 1>&2
262262
exit 1
263263
fi
264+
echo
265+
echo
264266
echo "Plase 1 completed.
265267
Continue with the steps outlined in the $0 manual page."
266268
exit 0

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy