From db32565b36e82e56a655e703ba1124ab19424e2e Mon Sep 17 00:00:00 2001 From: Ian Barwick Date: Fri, 15 Jul 2016 15:59:48 +0900 Subject: [PATCH] Add notes about setting pg_bindir for Debian/Ubuntu-based distributions. repmgr doesn't know about pg_ctlcluster. Per GitHub query #196. --- README.md | 10 ++++++++++ repmgr.conf.sample | 3 +++ 2 files changed, 13 insertions(+) diff --git a/README.md b/README.md index 79a3b5c6..44f18e7f 100644 --- a/README.md +++ b/README.md @@ -375,6 +375,16 @@ to include this schema name, e.g. ALTER USER repmgr SET search_path TO repmgr_test, "$user", public; +* * * + +> *TIP*: for Debian-based distributions we recommend explictly setting +> `pg_bindir` to the directory where `pg_ctl` and other binaries not in +> the standard path are located. For PostgreSQL 9.5 this would be +> `/usr/lib/postgresql/9.5/bin/`. + +* * * + + ### Initialise the master server To enable `repmgr` to support a replication cluster, the master node must diff --git a/repmgr.conf.sample b/repmgr.conf.sample index 1406debf..4233d061 100644 --- a/repmgr.conf.sample +++ b/repmgr.conf.sample @@ -100,6 +100,9 @@ # path to PostgreSQL binary directory (location of pg_ctl, pg_basebackup etc.) # (if not provided, defaults to system $PATH) #pg_bindir=/usr/bin/ +# +# Debian/Ubuntu users: you will probably need to set this to the directory +# where `pg_ctl` is located, e.g. /usr/lib/postgresql/9.5/bin/ # service control commands #