Skip to content

Commit 39da0f7

Browse files
committed
doc: Update example version numbers in pg_upgrade documentation
The exact numbers don't matter, since they are examples, but it was looking quite dated. For the target version, we now automatically substitute the current major version. The updated example source version should be good for a couple of years.
1 parent 2721712 commit 39da0f7

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

doc/src/sgml/ref/pgupgrade.sgml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@
3838
<application>pg_upgrade</> (formerly called <application>pg_migrator</>) allows data
3939
stored in <productname>PostgreSQL</> data files to be upgraded to a later <productname>PostgreSQL</>
4040
major version without the data dump/reload typically required for
41-
major version upgrades, e.g. from 8.4.7 to the current major release
41+
major version upgrades, e.g. from 9.6.3 to the current major release
4242
of <productname>PostgreSQL</>. It is not required for minor version upgrades, e.g. from
43-
9.0.1 to 9.0.4.
43+
9.6.2 to 9.6.3.
4444
</para>
4545

4646
<para>
@@ -66,7 +66,7 @@
6666

6767
<para>
6868
pg_upgrade supports upgrades from 8.4.X and later to the current
69-
major release of <productname>PostgreSQL</>, including snapshot and alpha releases.
69+
major release of <productname>PostgreSQL</>, including snapshot and beta releases.
7070
</para>
7171
</refsect1>
7272

@@ -207,7 +207,7 @@
207207

208208
<para>
209209
If you are using a version-specific installation directory, e.g.
210-
<filename>/opt/PostgreSQL/9.1</>, you do not need to move the old cluster. The
210+
<filename>/opt/PostgreSQL/&majorversion;</>, you do not need to move the old cluster. The
211211
graphical installers all use version-specific installation directories.
212212
</para>
213213

@@ -298,15 +298,15 @@ make prefix=/usr/local/pgsql.new install
298298
Make sure both database servers are stopped using, on Unix, e.g.:
299299

300300
<programlisting>
301-
pg_ctl -D /opt/PostgreSQL/8.4 stop
302-
pg_ctl -D /opt/PostgreSQL/9.0 stop
301+
pg_ctl -D /opt/PostgreSQL/9.6 stop
302+
pg_ctl -D /opt/PostgreSQL/&majorversion; stop
303303
</programlisting>
304304

305305
or on Windows, using the proper service names:
306306

307307
<programlisting>
308-
NET STOP postgresql-8.4
309-
NET STOP postgresql-9.0
308+
NET STOP postgresql-9.6
309+
NET STOP postgresql-&majorversion;
310310
</programlisting>
311311
</para>
312312

@@ -366,17 +366,17 @@ NET STOP postgresql-9.0
366366

367367
<programlisting>
368368
RUNAS /USER:postgres "CMD.EXE"
369-
SET PATH=%PATH%;C:\Program Files\PostgreSQL\9.0\bin;
369+
SET PATH=%PATH%;C:\Program Files\PostgreSQL\&majorversion;\bin;
370370
</programlisting>
371371

372372
and then run <application>pg_upgrade</> with quoted directories, e.g.:
373373

374374
<programlisting>
375375
pg_upgrade.exe
376-
--old-datadir "C:/Program Files/PostgreSQL/8.4/data"
377-
--new-datadir "C:/Program Files/PostgreSQL/9.0/data"
378-
--old-bindir "C:/Program Files/PostgreSQL/8.4/bin"
379-
--new-bindir "C:/Program Files/PostgreSQL/9.0/bin"
376+
--old-datadir "C:/Program Files/PostgreSQL/9.6/data"
377+
--new-datadir "C:/Program Files/PostgreSQL/&majorversion;/data"
378+
--old-bindir "C:/Program Files/PostgreSQL/9.6/bin"
379+
--new-bindir "C:/Program Files/PostgreSQL/&majorversion;/bin"
380380
</programlisting>
381381

382382
Once started, <command>pg_upgrade</> will verify the two clusters are compatible

0 commit comments

Comments
 (0)