Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VFWAl-0001it-7p for pgsql-bugs@arkaria.postgresql.org; Fri, 30 Aug 2013 21:24:03 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VFWAk-0002kD-Nc for pgsql-bugs@arkaria.postgresql.org; Fri, 30 Aug 2013 21:24:02 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VFWAk-0002k7-0V for pgsql-bugs@postgresql.org; Fri, 30 Aug 2013 21:24:02 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VFWAh-0001GH-GH for pgsql-bugs@postgresql.org; Fri, 30 Aug 2013 21:24:01 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id r7ULNp8e019715; Fri, 30 Aug 2013 17:23:51 -0400 From: Tom Lane To: Andres Freund cc: terje@elde.net, pgsql-bugs@postgresql.org Subject: Re: BUG #8410: out of binary heap slots In-reply-to: <20130830210525.GB8932@awork2.anarazel.de> References: <20130830210015.GA8932@awork2.anarazel.de> <20130830210525.GB8932@awork2.anarazel.de> Comments: In-reply-to Andres Freund message dated "Fri, 30 Aug 2013 23:05:25 +0200" Date: Fri, 30 Aug 2013 17:23:51 -0400 Message-ID: <19714.1377897831@sss.pgh.pa.us> X-Pg-Spam-Score: -4.1 (----) 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 Andres Freund writes: > 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. Sounds like a bug all right, but I'm not convinced it explains Terje's report. The thing this theory doesn't explain is why would Terje be having trouble reproducing the failure? Seems like re-running the same query ought to produce the same failure. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs