From 657125a3fb501de842b80db21eabfbfc5e961da3 Mon Sep 17 00:00:00 2001 From: Ian Barwick Date: Tue, 29 Aug 2017 23:02:23 +0900 Subject: [PATCH] Note that "conninfo" must not be a connection URI. Per GitHub #321. --- README.md | 3 ++- repmgr.conf.sample | 7 +++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index cd17f2f4..324f5e8e 100644 --- a/README.md +++ b/README.md @@ -400,7 +400,8 @@ least the following parameters: - `conninfo`: a valid connection string for the `repmgr` database on the *current* server. (On the standby, the database will not yet exist, but `repmgr` needs to know the connection details to complete the setup - process). + process). *NOTE* this must be a keyword/value string, not a connection + URI; this limitation will be removed in a future `repmgr` version. `repmgr.conf` should not be stored inside the PostgreSQL data directory, as it could be overwritten when setting up or reinitialising the PostgreSQL diff --git a/repmgr.conf.sample b/repmgr.conf.sample index e870923a..528838e0 100644 --- a/repmgr.conf.sample +++ b/repmgr.conf.sample @@ -26,11 +26,14 @@ # the server's hostname or another identifier unambiguously # associated with the server to avoid confusion -# Database connection information as a conninfo string -# This must be accessible to all servers in the cluster; for details see: +# Database connection information as a conninfo string (this must be a +# keyword/value string, not a connection URI). # # https://www.postgresql.org/docs/current/static/libpq-connect.html#LIBPQ-CONNSTRING # +# All servers in the cluster must be able to access the database +# using this connection string. +# #conninfo='host=192.168.204.104 dbname=repmgr user=repmgr' # # If repmgrd is in use, consider explicitly setting `connect_timeout` in the