@@ -40,9 +40,9 @@ PostgreSQL documentation
40
40
<application>pg_upgrade</application> (formerly called <application>pg_migrator</application>) allows data
41
41
stored in <productname>PostgreSQL</productname> data files to be upgraded to a later <productname>PostgreSQL</productname>
42
42
major version without the data dump/restore typically required for
43
- major version upgrades, e.g., from 9.5.8 to 9.6.4 or from 10.7 to 11.2 .
44
- It is not required for minor version upgrades, e.g., from 9.6.2 to 9.6.3
45
- or from 10 .1 to 10.2 .
43
+ major version upgrades, e.g., from 12.14 to 13.10 or from 14.9 to 15.5 .
44
+ It is not required for minor version upgrades, e.g., from 12.7 to 12.8
45
+ or from 14 .1 to 14.5 .
46
46
</para>
47
47
48
48
<para>
@@ -390,14 +390,14 @@ make prefix=/usr/local/pgsql.new install
390
390
Make sure both database servers are stopped using, on Unix, e.g.:
391
391
392
392
<programlisting>
393
- pg_ctl -D /opt/PostgreSQL/9.6 stop
393
+ pg_ctl -D /opt/PostgreSQL/12 stop
394
394
pg_ctl -D /opt/PostgreSQL/&majorversion; stop
395
395
</programlisting>
396
396
397
397
or on Windows, using the proper service names:
398
398
399
399
<programlisting>
400
- NET STOP postgresql-9.6
400
+ NET STOP postgresql-12
401
401
NET STOP postgresql-&majorversion;
402
402
</programlisting>
403
403
</para>
@@ -471,9 +471,9 @@ SET PATH=%PATH%;C:\Program Files\PostgreSQL\&majorversion;\bin;
471
471
472
472
<programlisting>
473
473
pg_upgrade.exe
474
- --old-datadir "C:/Program Files/PostgreSQL/9.6 /data"
474
+ --old-datadir "C:/Program Files/PostgreSQL/12 /data"
475
475
--new-datadir "C:/Program Files/PostgreSQL/&majorversion;/data"
476
- --old-bindir "C:/Program Files/PostgreSQL/9.6 /bin"
476
+ --old-bindir "C:/Program Files/PostgreSQL/12 /bin"
477
477
--new-bindir "C:/Program Files/PostgreSQL/&majorversion;/bin"
478
478
</programlisting>
479
479
@@ -603,8 +603,8 @@ rsync --archive --delete --hard-links --size-only --no-inc-recursive old_cluster
603
603
remote directory, e.g.,
604
604
605
605
<programlisting>
606
- rsync --archive --delete --hard-links --size-only --no-inc-recursive /opt/PostgreSQL/9.5 \
607
- /opt/PostgreSQL/9.6 standby.example.com:/opt/PostgreSQL
606
+ rsync --archive --delete --hard-links --size-only --no-inc-recursive /opt/PostgreSQL/12 \
607
+ /opt/PostgreSQL/&majorversion; standby.example.com:/opt/PostgreSQL
608
608
</programlisting>
609
609
610
610
You can verify what the command will do using
@@ -633,8 +633,8 @@ rsync --archive --delete --hard-links --size-only --no-inc-recursive /opt/Postgr
633
633
<application>rsync</application> command for each tablespace directory, e.g.:
634
634
635
635
<programlisting>
636
- rsync --archive --delete --hard-links --size-only --no-inc-recursive /vol1/pg_tblsp/PG_9.5_201510051 \
637
- /vol1/pg_tblsp/PG_9.6_201608131 standby.example.com:/vol1/pg_tblsp
636
+ rsync --archive --delete --hard-links --size-only --no-inc-recursive /vol1/pg_tblsp/PG_12_201909212 \
637
+ /vol1/pg_tblsp/PG_&majorversion;_202307071 standby.example.com:/vol1/pg_tblsp
638
638
</programlisting>
639
639
640
640
If you have relocated <filename>pg_wal</filename> outside the data
0 commit comments