Skip to content

Commit 84f08f2

Browse files
committed
doc: Improve order of options on pg_upgrade reference page
Put the new long-only options in a location that is consistent with the existing long-only options and also the --help output.
1 parent 4364e01 commit 84f08f2

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

doc/src/sgml/ref/pgupgrade.sgml

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -190,29 +190,6 @@ PostgreSQL documentation
190190
variable <envar>PGSOCKETDIR</envar></para></listitem>
191191
</varlistentry>
192192

193-
<varlistentry>
194-
<term><option>--sync-method=</option><replaceable>method</replaceable></term>
195-
<listitem>
196-
<para>
197-
When set to <literal>fsync</literal>, which is the default,
198-
<command>pg_upgrade</command> will recursively open and synchronize all
199-
files in the upgraded cluster's data directory. The search for files
200-
will follow symbolic links for the WAL directory and each configured
201-
tablespace.
202-
</para>
203-
<para>
204-
On Linux, <literal>syncfs</literal> may be used instead to ask the
205-
operating system to synchronize the whole file systems that contain the
206-
upgraded cluster's data directory, its WAL files, and each tablespace.
207-
See <xref linkend="guc-recovery-init-sync-method"/> for information
208-
about the caveats to be aware of when using <literal>syncfs</literal>.
209-
</para>
210-
<para>
211-
This option has no effect when <option>--no-sync</option> is used.
212-
</para>
213-
</listitem>
214-
</varlistentry>
215-
216193
<varlistentry>
217194
<term><option>-U</option> <replaceable>username</replaceable></term>
218195
<term><option>--username=</option><replaceable>username</replaceable></term>
@@ -276,6 +253,29 @@ PostgreSQL documentation
276253
</listitem>
277254
</varlistentry>
278255

256+
<varlistentry>
257+
<term><option>--sync-method=</option><replaceable>method</replaceable></term>
258+
<listitem>
259+
<para>
260+
When set to <literal>fsync</literal>, which is the default,
261+
<command>pg_upgrade</command> will recursively open and synchronize all
262+
files in the upgraded cluster's data directory. The search for files
263+
will follow symbolic links for the WAL directory and each configured
264+
tablespace.
265+
</para>
266+
<para>
267+
On Linux, <literal>syncfs</literal> may be used instead to ask the
268+
operating system to synchronize the whole file systems that contain the
269+
upgraded cluster's data directory, its WAL files, and each tablespace.
270+
See <xref linkend="guc-recovery-init-sync-method"/> for information
271+
about the caveats to be aware of when using <literal>syncfs</literal>.
272+
</para>
273+
<para>
274+
This option has no effect when <option>--no-sync</option> is used.
275+
</para>
276+
</listitem>
277+
</varlistentry>
278+
279279
<varlistentry>
280280
<term><option>-?</option></term>
281281
<term><option>--help</option></term>

0 commit comments

Comments
 (0)