From: PG Doc comments form <noreply@postgresql.org>
To: pgsql-docs@lists.postgresql.org
Cc: gregory@arenius.com
Subject: pg_upgrade "configdir" vs "datadir"
Date: Fri, 26 Jul 2019 21:23:28 +0000
Message-ID: <156417620850.1184.14753980334386939913@wrigleys.postgresql.org> (raw)
The following documentation comment has been logged on the website:
Page: https://www.postgresql.org/docs/11/pgupgrade.html
Description:
pg_upgrade seems to assume that the datadir and the configdir are the same
but on Debian/Ubuntu they are not the same by default (installing from the
postgres repository).
The current documentation:
-d configdir
--old-datadir=configdir
the old database cluster configuration directory; environment variable
PGDATAOLD
-D configdir
--new-datadir=configdir
the new database cluster configuration directory; environment variable
PGDATANEW
In order for this to work on Debian/Ubuntu you need to also pass some
options with the actual configuration directory. For example:
-o 'config_file=/etc/postgresql/9.6/main/postgresql.conf'
-O 'config_file=/etc/postgresql/10/main/postgresql.conf'
I think the documentation could use some clarification on this point.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-docs@postgresql.org
Cc: noreply@postgresql.org, pgsql-docs@lists.postgresql.org, gregory@arenius.com
Subject: Re: pg_upgrade "configdir" vs "datadir"
In-Reply-To: <156417620850.1184.14753980334386939913@wrigleys.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox