Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VFVsq-0001BM-Ty for pgsql-bugs@arkaria.postgresql.org; Fri, 30 Aug 2013 21:05:33 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VFVsq-0000ar-Bd for pgsql-bugs@arkaria.postgresql.org; Fri, 30 Aug 2013 21:05:32 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VFVsp-0000ak-9i for pgsql-bugs@postgresql.org; Fri, 30 Aug 2013 21:05:31 +0000 Received: from moutng.kundenserver.de ([212.227.17.8]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VFVsm-0000rX-Hb for pgsql-bugs@postgresql.org; Fri, 30 Aug 2013 21:05:30 +0000 Received: from anarazel.de (p54AF4A79.dip0.t-ipconnect.de [84.175.74.121]) by mrelayeu.kundenserver.de (node=mreu3) with ESMTP (Nemesis) id 0MM4U4-1VNE301iA8-007hNT; Fri, 30 Aug 2013 23:05:26 +0200 Received: by anarazel.de (Postfix, from userid 1000) id B67A7100A6D; Fri, 30 Aug 2013 23:05:25 +0200 (CEST) Date: Fri, 30 Aug 2013 23:05:25 +0200 From: Andres Freund To: terje@elde.net Cc: pgsql-bugs@postgresql.org Subject: Re: BUG #8410: out of binary heap slots Message-ID: <20130830210525.GB8932@awork2.anarazel.de> References: <20130830210015.GA8932@awork2.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20130830210015.GA8932@awork2.anarazel.de> X-Provags-ID: V02:K0:dcwUDDlrhDd6B6kZtNJa1eiwqPne9bpN56iy3DtaaNo 8uRhjqaKg+rqZyfKymZtgF1m6XpT60rtxeeSXpCino/Wj3M/sa AiaOZ4HYvTzRSgBOXsSgF89oL1oTB5R3COusr+HOB3qRRzCt1G Ip3NGhPbOxptCoYGGCJVtxD/QRUkXZe6zVyrKDhxRBt/YzBY+f 4gBrVh5FXo5YcQgaeqGDiUjSOHzQhgouovionSG4+VmxnaVy5L IZTiXjccDtNVrcwkl1Q32c29eGK5qpjCGHkkE7EN4n7OOgz6AJ KzGKUeJjq9mBfWZEoRmdgWZxePTb4IF/vZqRJT0aBM2IhL97EB KiduPXx+nSRJnCQqk9zY0LOrWwduxxCSDTMZavBty X-Pg-Spam-Score: -0.5 (/) 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 2013-08-30 23:00:15 +0200, Andres Freund wrote: > Hi, > > > On 2013-08-30 20:46:27 +0000, terje@elde.net wrote: > > I'm getting "out of binary heap slots", which offcourse spoils the fun of > > the query. > > > Explain analyze gives this plan (again anonymized a bit, but can send proper > > off-list): > > Since I reviewed the patch that introduced that message, I'd be > interested in getting that. Ideally in a state where I can reproduce the > issue in a new cluster. No need, found the bug. And I think can build a testcase myself. ExecReScanMergeAppend resets ms_initialized, but doesn't clear the binaryheap. Thus no new elements fit. 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