From cd2f74a840052ce224609d1466df66f5dd362c1a Mon Sep 17 00:00:00 2001 From: Ian Barwick Date: Wed, 11 Mar 2015 17:40:27 +0900 Subject: [PATCH] Update README with replication slot information --- README.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 493a7466..b0b70507 100644 --- a/README.md +++ b/README.md @@ -293,7 +293,22 @@ connect to, e.g.: Replication slots ----------------- -... +Replication slots were introduced with PostgreSQL 9.4 and enable standbys to +notify the master of their WAL consumption, ensuring that the master will +not remove any WAL files until they have been received by all standbys. +This mitigates the requirement to manage WAL file retention using +`wal_keep_segments` etc., with the caveat that if a standby fails, no WAL +files will be removed until the standby's replication slot is deleted. + +To enable replication slots, set the boolean parameter `use_replication_slots` +in `repmgr.conf`: + + use_replication_slots=1 + +`repmgr` will automatically generate an appropriate slot name, which is +stored in the `repl_nodes` table. + +http://www.postgresql.org/docs/current/interactive/warm-standby.html#STREAMING-REPLICATION-SLOTS Reference ---------