bug in ReplicationSlotsCountDBSlots - Mailing list pgsql-bugs

From yamamoto@valinux.co.jp (YAMAMOTO Takashi)
Subject bug in ReplicationSlotsCountDBSlots
Date
Msg-id 20140307024321.B30CA71A41@kuma.localdomain
Whole thread Raw
Responses Re: bug in ReplicationSlotsCountDBSlots  (Bruce Momjian <bruce@momjian.us>)
List pgsql-bugs
hi,

the following fixes an obvious bug in ReplicationSlotsCountDBSlots
which prevents dropping unrelated databases.

YAMAMOTO Takashi

diff --git a/src/backend/replication/slot.c b/src/backend/replication/slot.c
index 45ed7e4..76e5573 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)

pgsql-bugs by date:

Previous
From: dylan-pgsql@dylex.net
Date:
Subject: BUG #9457: replace materialized view?
Next
From: Pavel Stehule
Date:
Subject: Re: BUG #9457: replace materialized view?