Skip to content

Commit e5dede9

Browse files
committed
doc: mention datadir locations are actually config locations
Technically, pg_upgrade's --old-datadir and --new-datadir are configuration directories, not necessarily data directories. This is reflected in the 'postgres' manual page, so do the same for pg_upgrade. Reported-by: Yves Goergen Bug: 14898 Discussion: https://postgr.es/m/20171110220912.31513.13322@wrigleys.postgresql.org Backpatch-through: 10
1 parent 3ccdc6f commit e5dede9

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

doc/src/sgml/ref/pgupgrade.sgml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
<arg choice="plain"><option>-B</option></arg>
2525
<arg choice="plain"><replaceable>newbindir</replaceable></arg>
2626
<arg choice="plain"><option>-d</option></arg>
27-
<arg choice="plain"><replaceable>olddatadir</replaceable></arg>
27+
<arg choice="plain"><replaceable>oldconfigdir</replaceable></arg>
2828
<arg choice="plain"><option>-D</option></arg>
29-
<arg choice="plain"><replaceable>newdatadir</replaceable></arg>
29+
<arg choice="plain"><replaceable>newconfigdir</replaceable></arg>
3030
<arg rep="repeat"><replaceable>option</replaceable></arg>
3131
</cmdsynopsis>
3232
</refsynopsisdiv>
@@ -99,16 +99,16 @@
9999
</varlistentry>
100100

101101
<varlistentry>
102-
<term><option>-d</option> <replaceable>datadir</replaceable></term>
103-
<term><option>--old-datadir=</option><replaceable>datadir</replaceable></term>
104-
<listitem><para>the old cluster data directory; environment
102+
<term><option>-d</option> <replaceable>configdir</replaceable></term>
103+
<term><option>--old-datadir=</option><replaceable>configdir</replaceable></term>
104+
<listitem><para>the old database cluster configuration directory; environment
105105
variable <envar>PGDATAOLD</envar></para></listitem>
106106
</varlistentry>
107107

108108
<varlistentry>
109-
<term><option>-D</option> <replaceable>datadir</replaceable></term>
110-
<term><option>--new-datadir=</option><replaceable>datadir</replaceable></term>
111-
<listitem><para>the new cluster data directory; environment
109+
<term><option>-D</option> <replaceable>configdir</replaceable></term>
110+
<term><option>--new-datadir=</option><replaceable>configdir</replaceable></term>
111+
<listitem><para>the new database cluster configuration directory; environment
112112
variable <envar>PGDATANEW</envar></para></listitem>
113113
</varlistentry>
114114

@@ -476,7 +476,7 @@ pg_upgrade.exe
476476
<title>Save configuration files</title>
477477

478478
<para>
479-
Save any configuration files from the old standbys' data
479+
Save any configuration files from the old standbys' configuration
480480
directories you need to keep, e.g. <filename>postgresql.conf</filename>,
481481
<literal>recovery.conf</literal>, because these will be overwritten or
482482
removed in the next step.

0 commit comments

Comments
 (0)