1- <!-- $PostgreSQL: pgsql/doc/src/sgml/pgupgrade.sgml,v 1.4 2010/05/13 22:51:00 momjian Exp $ -->
1+ <!-- $PostgreSQL: pgsql/doc/src/sgml/pgupgrade.sgml,v 1.5 2010/05/18 15:41:36 mha Exp $ -->
22
33<sect1 id="pgupgrade">
44 <title>pg_upgrade</title>
@@ -154,7 +154,7 @@ gmake prefix=/usr/local/pgsql.new install
154154
155155<programlisting>
156156pg_ctl --pgdata /opt/PostgreSQL/8.4 stop
157- pg_ctl --pgdata /opt/PostgreSQL/8.5 stop
157+ pg_ctl --pgdata /opt/PostgreSQL/9.0 stop
158158</programlisting>
159159
160160 or on Windows
@@ -175,7 +175,9 @@ NET STOP pgsql-8.3 (different service name)
175175 <listitem>
176176 <para>
177177 Run pg_upgrade
178+ </para>
178179
180+ <para>
179181 Always run the pg_upgrade binary in the new server, not the old one.
180182 pg_upgrade requires the specification of the old and new cluster's
181183 PGDATA and executable (/bin) directories. You can also specify separate
@@ -192,17 +194,17 @@ NET STOP pgsql-8.3 (different service name)
192194
193195<programlisting>
194196RUNAS /USER:postgres "CMD.EXE"
195- SET PATH=%PATH%;C:\Program Files\PostgreSQL\8.5 \bin;
197+ SET PATH=%PATH%;C:\Program Files\PostgreSQL\9.0 \bin;
196198</programlisting>
197199
198200 and then run pg_upgrade with quoted directories, e.g.:
199201
200202<programlisting>
201203pg_upgrade.exe
202204 --old-datadir "C:/Program Files/PostgreSQL/8.4/data"
203- --new-datadir "C:/Program Files/PostgreSQL/8.5 /data"
205+ --new-datadir "C:/Program Files/PostgreSQL/9.0 /data"
204206 --old-bindir "C:/Program Files/PostgreSQL/8.4/bin"
205- --new-bindir "C:/Program Files/PostgreSQL/8.5 /bin"
207+ --new-bindir "C:/Program Files/PostgreSQL/9.0 /bin"
206208</programlisting>
207209
208210 Once started, pg_upgrade will verify the two clusters are compatible