Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XZKnK-0007AW-1u for pgsql-bugs@arkaria.postgresql.org; Wed, 01 Oct 2014 14:22:18 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XZKnJ-0004lq-FM for pgsql-bugs@arkaria.postgresql.org; Wed, 01 Oct 2014 14:22:17 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XZKnI-0004jy-8F for pgsql-bugs@postgresql.org; Wed, 01 Oct 2014 14:22:16 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XZKnE-00018p-Vt for pgsql-bugs@postgresql.org; Wed, 01 Oct 2014 14:22:15 +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 s91EM10C009604; Wed, 1 Oct 2014 10:22:01 -0400 From: Tom Lane To: Michael Paquier cc: Alvaro Herrera , Nelson Page , "pgsql-bugs@postgresql.org" Subject: Re: BUG #11457: The below query crashes 9.3.5, but not 9.3.4 In-reply-to: References: <20140920002314.2558.52018@wrigleys.postgresql.org> <4251b913e1464058b8e08d3e625bede3@BN3PR0401MB1265.namprd04.prod.outlook.com> <20140923035306.GD5311@eldon.alvh.no-ip.org> <5411.1411445043@sss.pgh.pa.us> <20140926154033.GD5311@eldon.alvh.no-ip.org> <7269.1411750638@sss.pgh.pa.us> <11520.1411999594@sss.pgh.pa.us> <966.1412142208@sss.pgh.pa.us> Comments: In-reply-to Michael Paquier message dated "Wed, 01 Oct 2014 16:52:43 +0900" Date: Wed, 01 Oct 2014 10:22:01 -0400 Message-ID: <9603.1412173321@sss.pgh.pa.us> X-Pg-Spam-Score: -2.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 Michael Paquier writes: > This approach is far more solid than my previous stuff and makes the > approach I took really brittle... Hey, the idea to add a field was mine, so don't beat yourself up about it :-). Sometimes it takes working out an idea to realize it's bad. > Looking at your code, I am wondering if > it would not be safer to add some assertions in find_childrel_top_parent > and find_childrel_parents, something like a check on RELOPT_BASEREL for > rel->reloptkind before returning a result. Er, those new functions should > always finishing by scanning a base rel, right? Yeah, not a bad idea. > Btw, this code will need minor adjustments for REL9_2_STABLE and > REL9_3_STABLE. Is a backpatch down to 9.1 to be considered? The bugs we're working on here are definitely demonstrable back to 9.2. I'm not sure about 9.1 yet; but considering that a87c72915 had to get back-patched as far as 9.1, there may well be some manifestations of these problems visible in 9.1. (The new regression test that I wrote doesn't seem to show any big problems there, but maybe I'm just short a case or two.) 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