From 061d2d7c13a87be1d87922818d457bca11b20d02 Mon Sep 17 00:00:00 2001 From: emorino Date: Mon, 16 Dec 2019 17:34:56 +0100 Subject: [PATCH] ajout explication archive_cleanup_command --- HowtoPostgreSQL/ReplicationPhysique.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/HowtoPostgreSQL/ReplicationPhysique.md b/HowtoPostgreSQL/ReplicationPhysique.md index 86dc8c53..b64f688e 100644 --- a/HowtoPostgreSQL/ReplicationPhysique.md +++ b/HowtoPostgreSQL/ReplicationPhysique.md @@ -133,6 +133,8 @@ Pendant le transfert des fichiers, la base a pu subir des modifications. Le para ~~~ standby_mode = 'on' primary_conninfo = 'host=192.0.2.1 user=repl password=PASSWORD application_name=foo' + +# Ce qui suit n'est pas obligatoire, c'est dans le cas ou on archive les WAL sur ce réplica archive_cleanup_command = '/usr/lib/postgresql/9.6/bin/pg_archivecleanup /srv/pg-archives/ %r' recovery_target_timeline = 'latest' ~~~