From 8457afec9c5dc61cc18497782d2f58b9a4908566 Mon Sep 17 00:00:00 2001 From: emorino Date: Mon, 18 Jul 2022 15:40:51 +0200 Subject: [PATCH] =?UTF-8?q?Ajout=20list=C3=A9=20les=20slots=20de=20r=C3=A9?= =?UTF-8?q?plication?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HowtoPostgreSQL/ReplicationPhysique.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/HowtoPostgreSQL/ReplicationPhysique.md b/HowtoPostgreSQL/ReplicationPhysique.md index 5b01a71b..2bef83b9 100644 --- a/HowtoPostgreSQL/ReplicationPhysique.md +++ b/HowtoPostgreSQL/ReplicationPhysique.md @@ -196,6 +196,12 @@ postgres=# SELECT pg_drop_replication_slot ('nom_du_secondaire'); Il est donc impératif de supprimer un slot de réplication si le secondaire a été désactivé ou hors ligne un certain temps, quitte à devoir reconstruire le secondaire complétement. +Pour listés tous les slots de réplication active sur un serveur, que ce soit des slots physique ou logique, on peux le faire avec la requête suivante : + +~~~ +postgres=# select * from pg_replication_slots; +~~~ + ### Monitoring Plusieurs possibilités pour surveiller la réplication :