Re: pg_upgrade "configdir" vs "datadir"

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: gregory(at)arenius(dot)com, pgsql-docs(at)lists(dot)postgresql(dot)org
Subject: Re: pg_upgrade "configdir" vs "datadir"
Date: 2019-07-30 00:42:00
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-docs

On Fri, Jul 26, 2019 at 09:23:28PM +0000, PG Doc comments form wrote:
> The following documentation comment has been logged on the website:
> Page:
> 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
> -D configdir
> --new-datadir=configdir
> the new database cluster configuration directory; environment variable
> 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.

Uh, I am confused. -d and -D are supposed to specify where
postgresql.conf is. Are you saying that doesn't work. Can you show us
the file paths, and the errors you see?

Bruce Momjian <bruce(at)momjian(dot)us>

+ As you are, so once was I. As I am, so you will be. +
+ Ancient Roman grave inscription +

In response to

Browse pgsql-docs by date

  From Date Subject
Next Message PG Doc comments form 2019-07-31 14:46:15 Example of creating subscription for publications in the same cluster
Previous Message Bruce Momjian 2019-07-27 21:41:30 Re: BUG #15912: The units of `autovacuum_vacuum_cost_delay` setting should be documented