From 91d9de97518b26a1e0d601b2c1580f5225030e56 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Fri, 7 Mar 2014 11:42:18 -0500 Subject: [PATCH] fix ReplicationSlotsCountDBSlots for dropping unrelated databases YAMAMOTO Takashi --- src/backend/replication/slot.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/backend/replication/slot.c b/src/backend/replication/slot.c index 45ed7e40e8..76e5573660 100644 --- a/src/backend/replication/slot.c +++ b/src/backend/replication/slot.c @@ -727,6 +727,7 @@ ReplicationSlotsCountDBSlots(Oid dboid, int *nslots, int *nactive) /* not database specific, skip */ if (s->data.database == InvalidOid) + continue; /* not our database, skip */ if (s->data.database != dboid) -- 2.50.1