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 [email protected]
Backpatch-through: 10
- -d data dir
- --old-datadir= data dir
-
the old cluster data directory; environment
+ -d config dir
+ --old-datadir= config dir
+
the old database cluster configuration directory; environment
variable PGDATAOLD
- -D data dir
- --new-datadir= data dir
-
the new cluster data directory; environment
+ -D config dir
+ --new-datadir= config dir
+
the new database cluster configuration directory; environment
variable PGDATANEW
Save configuration files
- 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. postgresql.conf ,
recovery.conf , because these will be overwritten or
removed in the next step.