Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2813903

Browse files
committed
doc: pg_upgrade: use dynamic new cluster major version numbers
Also update docs to use more recent old version numbersReported-by: mark.a.sloan@gmail.comDiscussion:https://postgr.es/m/169506804412.3727336.8571753495127355296@wrigleys.postgresql.orgBackpatch-through: 16
1 parent8a6d68f commit2813903

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

‎doc/src/sgml/ref/pgupgrade.sgml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ PostgreSQL documentation
4040
<application>pg_upgrade</application> (formerly called <application>pg_migrator</application>) allows data
4141
stored in <productname>PostgreSQL</productname> data files to be upgraded to a later <productname>PostgreSQL</productname>
4242
major version without the data dump/restore typically required for
43-
major version upgrades, e.g., from9.5.8 to9.6.4 or from10.7 to11.2.
44-
It is not required for minor version upgrades, e.g., from9.6.2 to9.6.3
45-
or from10.1 to10.2.
43+
major version upgrades, e.g., from12.14 to13.10 or from14.9 to15.5.
44+
It is not required for minor version upgrades, e.g., from12.7 to12.8
45+
or from14.1 to14.5.
4646
</para>
4747

4848
<para>
@@ -390,14 +390,14 @@ make prefix=/usr/local/pgsql.new install
390390
Make sure both database servers are stopped using, on Unix, e.g.:
391391

392392
<programlisting>
393-
pg_ctl -D /opt/PostgreSQL/9.6 stop
393+
pg_ctl -D /opt/PostgreSQL/12 stop
394394
pg_ctl -D /opt/PostgreSQL/&majorversion; stop
395395
</programlisting>
396396

397397
or on Windows, using the proper service names:
398398

399399
<programlisting>
400-
NET STOP postgresql-9.6
400+
NET STOP postgresql-12
401401
NET STOP postgresql-&majorversion;
402402
</programlisting>
403403
</para>
@@ -471,9 +471,9 @@ SET PATH=%PATH%;C:\Program Files\PostgreSQL\&majorversion;\bin;
471471

472472
<programlisting>
473473
pg_upgrade.exe
474-
--old-datadir "C:/Program Files/PostgreSQL/9.6/data"
474+
--old-datadir "C:/Program Files/PostgreSQL/12/data"
475475
--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"
477477
--new-bindir "C:/Program Files/PostgreSQL/&majorversion;/bin"
478478
</programlisting>
479479

@@ -603,8 +603,8 @@ rsync --archive --delete --hard-links --size-only --no-inc-recursive old_cluster
603603
remote directory, e.g.,
604604

605605
<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
608608
</programlisting>
609609

610610
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
633633
<application>rsync</application> command for each tablespace directory, e.g.:
634634

635635
<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
638638
</programlisting>
639639

640640
If you have relocated <filename>pg_wal</filename> outside the data

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp