From c34e08b8020aac1a15b984839bb6fbeb45d29c3c Mon Sep 17 00:00:00 2001 From: Ian Barwick Date: Tue, 14 Nov 2017 20:53:26 +0900 Subject: [PATCH] docs: document "passfile" configuration file parameter --- doc/cloning-standbys.sgml | 28 ++++++++++++++++++++++------ 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/doc/cloning-standbys.sgml b/doc/cloning-standbys.sgml index 7b95dbf9..eca32b95 100644 --- a/doc/cloning-standbys.sgml +++ b/doc/cloning-standbys.sgml @@ -68,7 +68,8 @@ the restore_command setting in repmgr.conf is configured to use a copy of the barman-wal-restore script shipped with the - barman-cli package (see below); + barman-cli package (see section + below). @@ -186,8 +187,7 @@ To enable &repmgr; to use replication slots, set the boolean parameter use_replication_slots in repmgr.conf: - use_replication_slots=true - + use_replication_slots=true Replication slots must be enabled in postgresql.conf by @@ -341,9 +341,16 @@ By default, pg_basebackup performs a checkpoint before beginning the backup process. However, a normal checkpoint may take some time to complete; a fast checkpoint can be forced with the -c/--fast-checkpoint option. - However this may impact performance of the server being cloned from + However this may impact performance of the server being cloned from (typically the primary) so should be used with care. + + + If Barman is set up for the cluster, it's possible to + clone the standby directly from Barman, without any impact on the server the standby + is being cloned from. For more details see . + + Further options can be passed to the pg_basebackup utility via the setting pg_basebackup_options in repmgr.conf. @@ -370,7 +377,7 @@ If, for whatever reason, you wish to include the password in recovery.conf, set use_primary_conninfo_password to true in repmgr.conf. This will read a password set in PGPASSWORD - (but not ~/.pgpass) and place it into the primary_conninfo + (but not ~/.pgpass) and place it into the primary_conninfo string in recovery.conf. Note that PGPASSWORD will need to be set during any action which causes recovery.conf to be rewritten, e.g. . @@ -380,6 +387,15 @@ string for each node, but this is obviously a security risk and should be avoided. + + From PostgreSQL 9.6, libpq supports the passfile + parameter in connection strings, which can be used to specify a password file other than + the default ~/.pgpass. + + + To have &repmgr; write a custom password file in primary_conninfo, + specify its location in passfile in repmgr.conf. + @@ -390,7 +406,7 @@ the replication user should be set in repmgr.conf via the parameter replication_user; &repmgr; will use this value when making replication connections and generating recovery.conf. This - value will also be stored in the repmgr.nodes + value will also be stored in the parameter repmgr.nodes table for each node; it no longer needs to be explicitly specified when cloning a node or executing .