Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WLxTT-0006tq-6o for pgsql-bugs@arkaria.postgresql.org; Fri, 07 Mar 2014 16:18:15 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WLxTS-0007xg-NR for pgsql-bugs@arkaria.postgresql.org; Fri, 07 Mar 2014 16:18:14 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WLxTS-0007xa-56 for pgsql-bugs@postgresql.org; Fri, 07 Mar 2014 16:18:14 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WLxTK-000516-LF; Fri, 07 Mar 2014 16:18:13 +0000 Received: from bruce by momjian.us with local (Exim 4.72) (envelope-from ) id 1WLxTI-0001Rs-S9; Fri, 07 Mar 2014 11:18:04 -0500 Date: Fri, 7 Mar 2014 11:18:04 -0500 From: Bruce Momjian To: YAMAMOTO Takashi Cc: pgsql-bugs@postgresql.org, rhaas@postgresql.org Subject: Re: bug in ReplicationSlotsCountDBSlots Message-ID: <20140307161804.GB21154@momjian.us> References: <20140307024321.B30CA71A41@kuma.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140307024321.B30CA71A41@kuma.localdomain> 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 11:43:21AM +0900, YAMAMOTO Takashi wrote: > hi, > > the following fixes an obvious bug in ReplicationSlotsCountDBSlots > which prevents dropping unrelated databases. Yikes, the code is literally: /* not database specific, skip */ if (s->data.database == InvalidOid) How did that get by the reviewers? -- 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