aboutsummaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2011-07-01 18:17:12 -0400
committerBruce Momjian <bruce@momjian.us>2011-07-01 18:17:12 -0400
commita88f4496b75a756df371a405ce608ceb06c8fbd7 (patch)
tree6d2a26346f6fcb1763046a34eca57e36de1bf226 /doc/src
parent897795240cfaaed724af2f53ed2c50c9862f951f (diff)
downloadpostgresql-a88f4496b75a756df371a405ce608ceb06c8fbd7.tar.gz
postgresql-a88f4496b75a756df371a405ce608ceb06c8fbd7.zip
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.
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/sgml/pgupgrade.sgml26
1 files changed, 15 insertions, 11 deletions
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 @@
<term><option>-b</option> <replaceable>old_bindir</></term>
<term><option>--old-bindir=</option><replaceable>old_bindir</></term>
<listitem><para>the old cluster executable directory;
- environment variable <envar>OLDBINDIR</></para></listitem>
+ environment variable <envar>PGBINOLD</></para></listitem>
</varlistentry>
<varlistentry>
<term><option>-B</option> <replaceable>new_bindir</></term>
<term><option>--new-bindir=</option><replaceable>new_bindir</></term>
<listitem><para>the new cluster executable directory;
- environment variable <envar>NEWBINDIR</></para></listitem>
+ environment variable <envar>PGBINNEW</></para></listitem>
</varlistentry>
<varlistentry>
@@ -80,14 +80,14 @@
<term><option>-d</option> <replaceable>old_datadir</></term>
<term><option>--old-datadir=</option><replaceable>old_datadir</></term>
<listitem><para>the old cluster data directory; environment
- variable <envar>OLDDATADIR</></para></listitem>
+ variable <envar>PGDATAOLD</></para></listitem>
</varlistentry>
<varlistentry>
<term><option>-D</option> <replaceable>new_datadir</></term>
<term><option>--new-datadir=</option><replaceable>new_datadir</></term>
<listitem><para>the new cluster data directory; environment
- variable <envar>NEWDATADIR</></para></listitem>
+ variable <envar>PGDATANEW</></para></listitem>
</varlistentry>
<varlistentry>
@@ -118,14 +118,14 @@
<term><option>-p</option> <replaceable>old_port_number</></term>
<term><option>--old-port=</option><replaceable>old_portnum</></term>
<listitem><para>the old cluster port number; environment
- variable <envar>PGPORT</></para></listitem>
+ variable <envar>PGPORTOLD</></para></listitem>
</varlistentry>
<varlistentry>
<term><option>-P</option> <replaceable>new_port_number</></term>
<term><option>--new-port=</option><replaceable>new_portnum</></term>
<listitem><para>the new cluster port number; environment
- variable <envar>PGPORT</></para></listitem>
+ variable <envar>PGPORTNEW</></para></listitem>
</varlistentry>
<varlistentry>
@@ -256,8 +256,7 @@ gmake prefix=/usr/local/pgsql.new install
so you might want to set authentication to <literal>trust</> in
<filename>pg_hba.conf</>, or if using <literal>md5</> authentication,
use a <filename>~/.pgpass</> file (see <xref linkend="libpq-pgpass">)
- 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.
</para>
</step>
@@ -303,9 +302,14 @@ NET STOP pgsql-8.3 (<productname>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 <literal>pg_upgrade --help</> for a full
- list of options.
- </para>
+ same file system.
+ </para>
+
+ <para>
+ <application>pg_upgrade</> defaults to running servers on port
+ 50432 to avoid unintended client connections. See <literal>pg_upgrade
+ --help</> for a full list of options.
+ </para>
<para>
For Windows users, you must be logged into an administrative account, and