Get data directory for server commands if needed

Also add configuration file option "pgdata" for hard-coding the
node's data directory - if the "repmgr" DB user isn't a superuser
or doesn't have permission to extract the data directory, we'll
need another way of finding out.
This commit is contained in:
Ian Barwick
2017-08-02 13:16:16 +09:00
parent 791640e3b4
commit 83cda89362
7 changed files with 156 additions and 18 deletions

View File

@@ -40,6 +40,12 @@
# Optional configuration items
# =============================================================================
#------------------------------------------------------------------------------
# General settings
#------------------------------------------------------------------------------
#pgdata # The node's data directory; usually only required
# if the repmgr user is not a superuser
#------------------------------------------------------------------------------
# Replication settings