Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WLxr2-0007sO-14 for pgsql-bugs@arkaria.postgresql.org; Fri, 07 Mar 2014 16:42:36 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WLxr1-0004yO-G0 for pgsql-bugs@arkaria.postgresql.org; Fri, 07 Mar 2014 16:42:35 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WLxr0-0004xO-I5 for pgsql-bugs@postgresql.org; Fri, 07 Mar 2014 16:42:34 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WLxqx-0005UL-LD; Fri, 07 Mar 2014 16:42:34 +0000 Received: from bruce by momjian.us with local (Exim 4.72) (envelope-from ) id 1WLxqu-0003s5-Ld; Fri, 07 Mar 2014 11:42:28 -0500 Date: Fri, 7 Mar 2014 11:42:28 -0500 From: Bruce Momjian To: Andres Freund Cc: YAMAMOTO Takashi , pgsql-bugs@postgresql.org, rhaas@postgresql.org Subject: Re: bug in ReplicationSlotsCountDBSlots Message-ID: <20140307164228.GC21154@momjian.us> References: <20140307024321.B30CA71A41@kuma.localdomain> <20140307161804.GB21154@momjian.us> <20140307162203.GG22909@awork2.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140307162203.GG22909@awork2.anarazel.de> User-Agent: Mutt/1.5.20 (2009-06-14) X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On Fri, Mar 7, 2014 at 05:22:03PM +0100, Andres Freund wrote: > On 2014-03-07 11:18:04 -0500, Bruce Momjian wrote: > > On Fri, Mar 7, 2014 at 11:43:21AM +0900, YAMAMOTO Takashi wrote: > > > hi, > > > > > > the following fixes an obvious bug in ReplicationSlotsCountDBSlots > > > which prevents dropping unrelated databases. > > Thanks, that's obviously a mistake! > > > Yikes, the code is literally: > > > > /* not database specific, skip */ > > if (s->data.database == InvalidOid) > > > > How did that get by the reviewers? > > It's a huge patch, and it changed a lot to accomodate review and to > rebase onto new versions. I think I introduced that bug when rebasing > the decoding functionality onto the already committed slot > functionality. Since it doesn't cause any obvious problems in many > scenarios.. > > Can you push that fix? Done, thanks. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + Everyone has their own god. + -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs