Skip to content

Commit 5aec7e0

Browse files
doc: Adjust some notes about pg_upgrade's file transfer modes.
--copy-file-range and --swap were not mentioned in a few places that discuss the available file transfer modes. This entire page would likely benefit from an overhaul, but that's v19 material at this point. Oversights in commits d93627b and 626d723.
1 parent 00066aa commit 5aec7e0

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

doc/src/sgml/ref/pgupgrade.sgml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ NET STOP postgresql-&majorversion;
540540
Always run the <application>pg_upgrade</application> binary of the new server, not the old one.
541541
<application>pg_upgrade</application> requires the specification of the old and new cluster's
542542
data and executable (<filename>bin</filename>) directories. You can also specify
543-
user and port values, and whether you want the data files linked or cloned
543+
user and port values, and whether you want the data files linked, cloned, or swapped
544544
instead of the default copy behavior.
545545
</para>
546546

@@ -589,8 +589,9 @@ pg_upgrade.exe
589589
to perform only the checks, even if the old server is still
590590
running. <command>pg_upgrade --check</command> will also outline any
591591
manual adjustments you will need to make after the upgrade. If you
592-
are going to be using link or clone mode, you should use the option
593-
<option>--link</option> or <option>--clone</option> with
592+
are going to be using link, clone, copy-file-range, or swap mode, you
593+
should use the option <option>--link</option>, <option>--clone</option>,
594+
<option>--copy-file-range</option>, or <option>--swap</option> with
594595
<option>--check</option> to enable mode-specific checks.
595596
<command>pg_upgrade</command> requires write permission in the current directory.
596597
</para>
@@ -880,7 +881,7 @@ psql --username=postgres --file=script.sql postgres
880881

881882
<listitem>
882883
<para>
883-
If the <option>--link</option> option was <emphasis>not</emphasis>
884+
If neither <option>--link</option> nor <option>--swap</option> was
884885
used, the old cluster was unmodified; it can be restarted.
885886
</para>
886887
</listitem>

0 commit comments

Comments
 (0)