Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WLxXY-00073v-03 for pgsql-bugs@arkaria.postgresql.org; Fri, 07 Mar 2014 16:22:28 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WLxXX-0000Dm-Gr for pgsql-bugs@arkaria.postgresql.org; Fri, 07 Mar 2014 16:22:27 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WLxXW-0000Dg-Sk for pgsql-bugs@postgresql.org; Fri, 07 Mar 2014 16:22:26 +0000 Received: from moutng.kundenserver.de ([212.227.126.187]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WLxXU-00056f-BX; Fri, 07 Mar 2014 16:22:26 +0000 Received: from anarazel.de (p54AF430D.dip0.t-ipconnect.de [84.175.67.13]) by mrelayeu.kundenserver.de (node=mreue003) with ESMTP (Nemesis) id 0Mefpk-1WWsiK2NGi-00ODmq; Fri, 07 Mar 2014 17:22:04 +0100 Received: by anarazel.de (Postfix, from userid 1000) id DE5C21009EE; Fri, 7 Mar 2014 17:22:03 +0100 (CET) Date: Fri, 7 Mar 2014 17:22:03 +0100 From: Andres Freund To: Bruce Momjian Cc: YAMAMOTO Takashi , pgsql-bugs@postgresql.org, rhaas@postgresql.org Subject: Re: bug in ReplicationSlotsCountDBSlots Message-ID: <20140307162203.GG22909@awork2.anarazel.de> References: <20140307024321.B30CA71A41@kuma.localdomain> <20140307161804.GB21154@momjian.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140307161804.GB21154@momjian.us> X-Provags-ID: V02:K0:97ZGHwITQFZljiJ+QGSByogKuGS7C7tcFiSXA6/pVku vEOKYU3TX+msLcPzgdz8gk8i9iNysZ1U9fYcxb/M3RzQ/QRGDi 8pU3B5sRGuBOp3PYncuO9F10PNx/fEpSnwtv+4FpfSkh+POAtU Oi3MY8Ul/QLHCmOM3E7bniODpz5oTe4WkR06O9cZkyYQLqRaoH HaaT3enAeUJSVJvxfawZi84GnkzmT3l5YQqqDvxDWRpQlUI77r n0XpTL0WzpOZREkHIe/d+sS0izcd34N6ZvvS1FVOhOgq0zs9gW EyiNZ9+NHSODgO6MEEG4j4N3ogMZ4dxQ2GNfFQlnwR8nUgb1W4 AGCR0wgVWmnhm+xgSBVRBIRBEHD+wRugT+wtkugMI 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 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? Greetings, Andres Freund -- Andres Freund http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs