summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2002-01-18 04:38:46 +0000
committerBruce Momjian <bruce@momjian.us>2002-01-18 04:38:46 +0000
commit85bc36158d4af941d5f0a836ac0ecaa158211c82 (patch)
treeb189a4f83124442e6820f1398398e165f7ece8cf
parent1d174c3086b5567449e1843ec8296405e7845dc4 (diff)
downloadpostgresql-85bc36158d4af941d5f0a836ac0ecaa158211c82.tar.gz
Enable /contrib/pg_upgrade, mention little testing.
-rw-r--r--contrib/pg_upgrade/README6
-rwxr-xr-xcontrib/pg_upgrade/pg_upgrade12
2 files changed, 10 insertions, 8 deletions
diff --git a/contrib/pg_upgrade/README b/contrib/pg_upgrade/README
index 878fad7816..e4363f5260 100644
--- a/contrib/pg_upgrade/README
+++ b/contrib/pg_upgrade/README
@@ -1,7 +1,9 @@
pg_upgrade
-This is a version of pg_upgrade which will migrate a 7.1 database to 7.2,
-or allow a 7.2 to 7.2 migration if you need to perform an initdb.
+This is a version of pg_upgrade which will migrate a 7.1 database to
+7.2, or allow a 7.2 to 7.2 migration if you need to perform an initdb.
+It has been only lightly tested. Please report any problems to the
+PostgreSQL lists.
Read the manual page for more information. To view it:
diff --git a/contrib/pg_upgrade/pg_upgrade b/contrib/pg_upgrade/pg_upgrade
index 477f8544e2..9274f0a69c 100755
--- a/contrib/pg_upgrade/pg_upgrade
+++ b/contrib/pg_upgrade/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/contrib/pg_upgrade/Attic/pg_upgrade,v 1.9 2002/01/15 05:41:55 momjian Exp $
+# $Header: /cvsroot/pgsql/contrib/pg_upgrade/Attic/pg_upgrade,v 1.10 2002/01/18 04:38:46 momjian Exp $
#
# To migrate this to newer versions of PostgreSQL:
# 1) Update the version numbers at the top of the file
@@ -13,8 +13,12 @@
#set -x
+# UPGRADE_VERSION is the expected old database version
+UPGRADE_VERSION="7.1"
+CUR_VERSION="7.2"
+
# Set this to "Y" to enable this program
-ENABLE="N"
+ENABLE="Y"
if [ "$ENABLE" != "Y" ]
then
@@ -25,10 +29,6 @@ then
fi
-# UPGRADE_VERSION is the expected old database version
-UPGRADE_VERSION="7.1"
-CUR_VERSION="7.2"
-
trap "rm -f /tmp/$$.*" 0 1 2 3 15
BASENAME=`basename "$0"`