mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-22 22:56:29 +00:00
repmgr has always insisted on determining the upstream's data directory location, which requires superuser permissions (or from PostgreSQL 10, membership of the default role "pg_read_all_settings"). Knowledge of the data directory location was required to implement rsync cloning (now deprecated), but with pg_basebackup the minimum permission requirement is now only a normal user with access to the repmgr metadata and a user with replication permissions. The ability to determine the data directory location is only required if the user specifies the --copy-external-config-files option, which needs to be able to determine the data directory to work out which configuration files are located outside it. This patch makes it possible to clone a standby with minimum permissions, with appropriate checks for available permissions if --copy-external-config-files is provided. Implements part of GitHub #536 and addresses issue raised in #586.
1.4 KiB
1.4 KiB