From a88f4496b75a756df371a405ce608ceb06c8fbd7 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Fri, 1 Jul 2011 18:17:12 -0400 Subject: Change pg_upgrade to use port 50432 by default to avoid unintended client connections during the upgrade. Also rename data/bin/port environment variables to being with 'PG'. Also no longer honor PGPORT. --- doc/src/sgml/pgupgrade.sgml | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/pgupgrade.sgml b/doc/src/sgml/pgupgrade.sgml index b24c1e7b981..aa633e2d414 100644 --- a/doc/src/sgml/pgupgrade.sgml +++ b/doc/src/sgml/pgupgrade.sgml @@ -60,14 +60,14 @@ old_bindir old_bindir the old cluster executable directory; - environment variable OLDBINDIR + environment variable PGBINOLD new_bindir new_bindir the new cluster executable directory; - environment variable NEWBINDIR + environment variable PGBINNEW @@ -80,14 +80,14 @@ old_datadir old_datadir the old cluster data directory; environment - variable OLDDATADIR + variable PGDATAOLD new_datadir new_datadir the new cluster data directory; environment - variable NEWDATADIR + variable PGDATANEW @@ -118,14 +118,14 @@ old_port_number old_portnum the old cluster port number; environment - variable PGPORT + variable PGPORTOLD new_port_number new_portnum the new cluster port number; environment - variable PGPORT + variable PGPORTNEW @@ -256,8 +256,7 @@ gmake prefix=/usr/local/pgsql.new install so you might want to set authentication to trust in pg_hba.conf, or if using md5 authentication, use a ~/.pgpass file (see ) - to avoid being prompted repeatedly for a password. Also make sure - pg_upgrade is the only program that can connect to the clusters. + to avoid being prompted repeatedly for a password. @@ -303,9 +302,14 @@ NET STOP pgsql-8.3 (PostgreSQL 8.3 and older used a different s copying), but you will not be able to access your old cluster once you start the new cluster after the upgrade. Link mode also requires that the old and new cluster data directories be in the - same file system. See pg_upgrade --help for a full - list of options. - + same file system. + + + + pg_upgrade defaults to running servers on port + 50432 to avoid unintended client connections. See pg_upgrade + --help for a full list of options. + For Windows users, you must be logged into an administrative account, and -- cgit v1.2.3