standby clone: don't query upstream's data directory

In early repmgr versions, this used to be a requirement for cloning
via rsync, and/or as a fallback location if the user didn't supply
a data directory to clone into. However as rsync cloning has been
deprecated, and the data directory must be specified in repmgr.conf,
this is no longer required, and removing it simplifies user privilege
requirements.

Note that it is still possible to explicitly provide a target data
directory with -D/--pgdata, though this is primarily useful for
the niche use case where repmgr is used as a convenience tool to
clone a node which is not intended to become part of a repmgr
cluster.

This is part of the implementation of GitHub #536 for the minimizing
of user privilege requirements.
This commit is contained in:
Ian Barwick
2019-10-16 13:15:04 +09:00
parent 5d81e03d2d
commit 0dce03a5f8
2 changed files with 6 additions and 30 deletions

View File

@@ -1,3 +1,6 @@
5.1 2019-??-??
repmgr: don't query upstream's data directory (Ian)
5.0 2019-10-15
general: add PostgreSQL 12 support (Ian)
general: parse configuration file using flex (Ian)