aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Bossart <nathan@postgresql.org>2025-04-01 14:37:47 -0500
committerNathan Bossart <nathan@postgresql.org>2025-04-01 14:37:47 -0500
commit5aec7e07fb9fd5d8d046a2b19c793d7e4cecf5e4 (patch)
treeb97b19adfd7c36bdedb9e3e8f59aa53fc3f155ff
parent00066aa1733d84109f7569a7202c3915d8289d3a (diff)
downloadpostgresql-5aec7e07fb9fd5d8d046a2b19c793d7e4cecf5e4.tar.gz
postgresql-5aec7e07fb9fd5d8d046a2b19c793d7e4cecf5e4.zip
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 d93627bcbe and 626d7236b6.
-rw-r--r--doc/src/sgml/ref/pgupgrade.sgml9
1 files changed, 5 insertions, 4 deletions
diff --git a/doc/src/sgml/ref/pgupgrade.sgml b/doc/src/sgml/ref/pgupgrade.sgml
index da261619043..df13365b287 100644
--- a/doc/src/sgml/ref/pgupgrade.sgml
+++ b/doc/src/sgml/ref/pgupgrade.sgml
@@ -540,7 +540,7 @@ NET STOP postgresql-&majorversion;
Always run the <application>pg_upgrade</application> binary of the new server, not the old one.
<application>pg_upgrade</application> requires the specification of the old and new cluster's
data and executable (<filename>bin</filename>) directories. You can also specify
- user and port values, and whether you want the data files linked or cloned
+ user and port values, and whether you want the data files linked, cloned, or swapped
instead of the default copy behavior.
</para>
@@ -589,8 +589,9 @@ pg_upgrade.exe
to perform only the checks, even if the old server is still
running. <command>pg_upgrade --check</command> will also outline any
manual adjustments you will need to make after the upgrade. If you
- are going to be using link or clone mode, you should use the option
- <option>--link</option> or <option>--clone</option> with
+ are going to be using link, clone, copy-file-range, or swap mode, you
+ should use the option <option>--link</option>, <option>--clone</option>,
+ <option>--copy-file-range</option>, or <option>--swap</option> with
<option>--check</option> to enable mode-specific checks.
<command>pg_upgrade</command> requires write permission in the current directory.
</para>
@@ -880,7 +881,7 @@ psql --username=postgres --file=script.sql postgres
<listitem>
<para>
- If the <option>--link</option> option was <emphasis>not</emphasis>
+ If neither <option>--link</option> nor <option>--swap</option> was
used, the old cluster was unmodified; it can be restarted.
</para>
</listitem>