pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: yamamoto@valinux.co.jp
To: pgsql-bugs@postgresql.org
Cc: rhaas@postgresql.org
Subject: bug in ReplicationSlotsCountDBSlots
Date: Fri,  7 Mar 2014 11:43:21 +0900 (JST)
Message-ID: <20140307024321.B30CA71A41@kuma.localdomain> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

hi,

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

YAMAMOTO Takashi

inline patch 1: src/backend/replication/slot.c (+1/-0 lines) download inline-1.patchdiff --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)
-- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs

view thread (4+ messages)  latest in thread

Message-ID: <20140307024321.B30CA71A41@kuma.localdomain>
Permalink:  ../20140307024321.B30CA71A41@kuma.localdomain/
Also on:    postgresql.org/message-id/20140307024321.B30CA71A41@kuma.localdomain

 ·  · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: yamamoto@valinux.co.jp, rhaas@postgresql.org
  Subject: Re: bug in ReplicationSlotsCountDBSlots
  In-Reply-To: <20140307024321.B30CA71A41@kuma.localdomain>
  References: <20140307024321.B30CA71A41@kuma.localdomain>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox