]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
doc: mention datadir locations are actually config locations
authorBruce Momjian <bruce@momjian.us>
Wed, 31 Jan 2018 21:25:21 +0000 (16:25 -0500)
committerBruce Momjian <bruce@momjian.us>
Wed, 31 Jan 2018 21:25:21 +0000 (16:25 -0500)
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

doc/src/sgml/ref/pgupgrade.sgml

index c3df343571f63518430378d369d0f445bf07e5fd..ba3cc133cbecaeed0d601ee63388f7891965e4f2 100644 (file)
@@ -24,9 +24,9 @@
    <arg choice="plain"><option>-B</option></arg>
    <arg choice="plain"><replaceable>newbindir</replaceable></arg>
    <arg choice="plain"><option>-d</option></arg>
-   <arg choice="plain"><replaceable>olddatadir</replaceable></arg>
+   <arg choice="plain"><replaceable>oldconfigdir</replaceable></arg>
    <arg choice="plain"><option>-D</option></arg>
-   <arg choice="plain"><replaceable>newdatadir</replaceable></arg>
+   <arg choice="plain"><replaceable>newconfigdir</replaceable></arg>
    <arg rep="repeat"><replaceable>option</replaceable></arg>
   </cmdsynopsis>
  </refsynopsisdiv>
      </varlistentry>
 
      <varlistentry>
-      <term><option>-d</option> <replaceable>datadir</></term>
-      <term><option>--old-datadir=</option><replaceable>datadir</></term>
-      <listitem><para>the old cluster data directory; environment
+      <term><option>-d</option> <replaceable>configdir</></term>
+      <term><option>--old-datadir=</option><replaceable>configdir</></term>
+      <listitem><para>the old database cluster configuration directory; environment
       variable <envar>PGDATAOLD</></para></listitem>
      </varlistentry>
 
      <varlistentry>
-      <term><option>-D</option> <replaceable>datadir</></term>
-      <term><option>--new-datadir=</option><replaceable>datadir</></term>
-      <listitem><para>the new cluster data directory; environment
+      <term><option>-D</option> <replaceable>configdir</></term>
+      <term><option>--new-datadir=</option><replaceable>configdir</>y</term>
+      <listitem><para>the new database cluster configuration directory; environment
       variable <envar>PGDATANEW</></para></listitem>
      </varlistentry>
 
@@ -476,7 +476,7 @@ pg_upgrade.exe
       <title>Save configuration files</title>
 
       <para>
-       Save any configuration files from the old standbys' data
+       Save any configuration files from the old standbys' configuration
        directories you need to keep, e.g.  <filename>postgresql.conf</>,
        <literal>recovery.conf</>, because these will be overwritten or
        removed in the next step.