Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XWHAC-0005aK-EV for pgsql-bugs@arkaria.postgresql.org; Tue, 23 Sep 2014 03:53:16 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XWHAB-0006io-Ms for pgsql-bugs@arkaria.postgresql.org; Tue, 23 Sep 2014 03:53:15 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XWHA9-0006id-JI for pgsql-bugs@postgresql.org; Tue, 23 Sep 2014 03:53:13 +0000 Received: from smtprelay0204.b.hostedemail.com ([64.98.42.204] helo=smtprelay.b.hostedemail.com) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XWHA5-0007iG-PN for pgsql-bugs@postgresql.org; Tue, 23 Sep 2014 03:53:11 +0000 Received: from filter.hostedemail.com (b-bigip1 [10.5.19.254]) by smtprelay02.b.hostedemail.com (Postfix) with ESMTP id F2B77D3812; Tue, 23 Sep 2014 03:53:08 +0000 (UTC) X-Session-Marker: 616C76686572726540616C76682E6E6F2D69702E6F7267 X-Spam-Summary: 50, 0, 0, , d41d8cd98f00b204, alvherre@alvh.no-ip.org, :::::, RULES_HIT:2:41:355:379:599:960:967:973:982:988:989:1260:1277:1311:1312:1313:1314:1345:1359:1437:1515:1516:1518:1519:1535:1593:1594:1595:1596:1730:1747:1777:1792:2197:2199:2393:2525:2560:2563:2682:2685:2828:2859:2933:2937:2939:2942:2945:2947:2951:2954:3022:3138:3139:3140:3141:3142:3353:3865:3867:3870:3871:3872:3874:3934:3936:3938:3941:3944:3947:3950:3953:3956:3959:4049:4118:4321:4605:4659:5007:6261:6671:7208:8957:9025:9121:10004:10394:10848:11026:11232:11256:11257:11473:11657:11658:11914:12043:12296:12438:12517:12519:12555:12663:12683:13007:13019:13894:13895:21060:21080, 0, RBL:none, CacheIP:none, Bayesian:0.5, 0.5, 0.5, Netcheck:none, DomainCache:0, MSF:not bulk, SPF:fn, MSBL:0, DNSBL:none, Custom_rules:0:0:0 X-HE-Tag: bean56_387e0ab72aa42 X-Filterd-Recvd-Size: 7496 Received: from eldon.alvh.no-ip.org (pc-65-79-161-190.cm.vtr.net [190.161.79.65]) (Authenticated sender: alvherre@alvh.no-ip.org) by omf08.b.hostedemail.com (Postfix) with ESMTPA; Tue, 23 Sep 2014 03:53:08 +0000 (UTC) Received: by eldon.alvh.no-ip.org (Postfix, from userid 1000) id E5E2D1FCB; Tue, 23 Sep 2014 00:53:06 -0300 (CLST) Date: Tue, 23 Sep 2014 00:53:06 -0300 From: Alvaro Herrera To: Nelson Page Cc: Michael Paquier , "pgsql-bugs@postgresql.org" Subject: Re: BUG #11457: The below query crashes 9.3.5, but not 9.3.4 Message-ID: <20140923035306.GD5311@eldon.alvh.no-ip.org> References: <20140920002314.2558.52018@wrigleys.postgresql.org> <4251b913e1464058b8e08d3e625bede3@BN3PR0401MB1265.namprd04.prod.outlook.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4251b913e1464058b8e08d3e625bede3@BN3PR0401MB1265.namprd04.prod.outlook.com> User-Agent: Mutt/1.5.21 (2010-09-15) 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 Nelson Page wrote: > Hi Michael, > > I've attached the create scripts for those tables. I'm relatively new > to postgresql, so if that's not as helpful as I think it is, let me > know what else I can provide. FWIW I can reproduce the crash in 9.3 HEAD with these scripts, so that's probably helpful enough. Table "Article" (not sent) is referenced in an FK, but I just commented out that clause. Backtrace is: #0 0x00007fd34d9ca1a5 in *__GI_raise (sig=) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 #1 0x00007fd34d9cd420 in *__GI_abort () at abort.c:92 #2 0x0000000000768c27 in ExceptionalCondition (conditionName=conditionName@entry=0x8c76b0 "!(!bms_overlap(appendrel->relids, required_outer))", errorType=errorType@entry=0x7a080c "FailedAssertion", fileName=fileName@entry=0x8c7470 "../../../../../../../../../../pgsql/source/REL9_3_STABLE/src/backend/optimizer/util/relnode.c", lineNumber=lineNumber@entry=953) at ../../../../../../../../../../pgsql/source/REL9_3_STABLE/src/backend/utils/error/assert.c:54 #3 0x000000000063c3a5 in get_appendrel_parampathinfo (appendrel=appendrel@entry=0x7fd3444db9c0, required_outer=required_outer@entry=0x7fd3444e40e8) at ../../../../../../../../../../pgsql/source/REL9_3_STABLE/src/backend/optimizer/util/relnode.c:953 #4 0x0000000000636293 in create_append_path (rel=rel@entry=0x7fd3444db9c0, subpaths=subpaths@entry=0x7fd3444f6bd8, required_outer=required_outer@entry=0x7fd3444e40e8) at ../../../../../../../../../../pgsql/source/REL9_3_STABLE/src/backend/optimizer/util/pathnode.c:898 #5 0x0000000000605df0 in set_append_rel_pathlist (rti=1146046832, rel=0x7fd3444db9c0, root=0x7fd344506c80, rte=) at ../../../../../../../../../../pgsql/source/REL9_3_STABLE/src/backend/optimizer/path/allpaths.c:852 #6 set_rel_pathlist (root=root@entry=0x7fd344506c80, rel=0x7fd3444db9c0, rti=1146046832, rti@entry=1, rte=) at ../../../../../../../../../../pgsql/source/REL9_3_STABLE/src/backend/optimizer/path/allpaths.c:306 #7 0x0000000000606407 in set_base_rel_pathlists (root=) at ../../../../../../../../../../pgsql/source/REL9_3_STABLE/src/backend/optimizer/path/allpaths.c:208 #8 make_one_rel (root=root@entry=0x7fd344506c80, joinlist=joinlist@entry=0x7fd3444df710) at ../../../../../../../../../../pgsql/source/REL9_3_STABLE/src/backend/optimizer/path/allpaths.c:138 #9 0x0000000000620d7d in query_planner (root=root@entry=0x7fd344506c80, tlist=tlist@entry=0x7fd3444db700, tuple_fraction=0, tuple_fraction@entry=, limit_tuples=-1, qp_callback=qp_callback@entry=0x6218d0 , qp_extra=qp_extra@entry=0x7fff4c709470, cheapest_path=cheapest_path@entry=0x7fff4c709460, sorted_path=sorted_path@entry=0x7fff4c709468, num_groups=num_groups@entry=0x7fff4c709450) at ../../../../../../../../../../pgsql/source/REL9_3_STABLE/src/backend/optimizer/plan/planmain.c:261 #10 0x0000000000622157 in grouping_planner (root=root@entry=0x7fd344506c80, tuple_fraction=0, tuple_fraction@entry=) at ../../../../../../../../../../pgsql/source/REL9_3_STABLE/src/backend/optimizer/plan/planner.c:1214 #11 0x0000000000624acb in subquery_planner (glob=0x27e0bc0, parse=parse@entry=0x27efdf0, parent_root=parent_root@entry=0x27f1ab0, hasRecursion=hasRecursion@entry=0 '\000', tuple_fraction=0, subroot=subroot@entry=0x7fff4c709638) at ../../../../../../../../../../pgsql/source/REL9_3_STABLE/src/backend/optimizer/plan/planner.c:558 #12 0x00000000006050ef in set_subquery_pathlist (rte=, rti=1, rel=, root=) at ../../../../../../../../../../pgsql/source/REL9_3_STABLE/src/backend/optimizer/path/allpaths.c:1231 #13 set_rel_size (root=root@entry=0x27f1ab0, rel=, rti=rti@entry=1, rte=) at ../../../../../../../../../../pgsql/source/REL9_3_STABLE/src/backend/optimizer/path/allpaths.c:264 #14 0x00000000006063a6 in set_base_rel_sizes (root=) at ../../../../../../../../../../pgsql/source/REL9_3_STABLE/src/backend/optimizer/path/allpaths.c:179 #15 make_one_rel (root=root@entry=0x27f1ab0, joinlist=joinlist@entry=0x27f25b0) at ../../../../../../../../../../pgsql/source/REL9_3_STABLE/src/backend/optimizer/path/allpaths.c:137 #16 0x0000000000620d7d in query_planner (root=root@entry=0x27f1ab0, tlist=tlist@entry=0x27f2498, tuple_fraction=0, tuple_fraction@entry=, limit_tuples=-1, qp_callback=qp_callback@entry=0x6218d0 , qp_extra=qp_extra@entry=0x7fff4c709850, cheapest_path=cheapest_path@entry=0x7fff4c709840, sorted_path=sorted_path@entry=0x7fff4c709848, num_groups=num_groups@entry=0x7fff4c709830) at ../../../../../../../../../../pgsql/source/REL9_3_STABLE/src/backend/optimizer/plan/planmain.c:261 #17 0x0000000000622157 in grouping_planner (root=root@entry=0x27f1ab0, tuple_fraction=0, tuple_fraction@entry=) at ../../../../../../../../../../pgsql/source/REL9_3_STABLE/src/backend/optimizer/plan/planner.c:1214 #18 0x0000000000624acb in subquery_planner (glob=glob@entry=0x27e0bc0, parse=parse@entry=0x271c428, parent_root=parent_root@entry=0x0, hasRecursion=hasRecursion@entry=0 '\000', tuple_fraction=0, subroot=subroot@entry=0x7fff4c7099e8) at ../../../../../../../../../../pgsql/source/REL9_3_STABLE/src/backend/optimizer/plan/planner.c:558 #19 0x0000000000624df7 in standard_planner (parse=0x271c428, cursorOptions=0, boundParams=0x0) at ../../../../../../../../../../pgsql/source/REL9_3_STABLE/src/backend/optimizer/plan/planner.c:209 #20 0x0000000000696549 in pg_plan_query (querytree=, cursorOptions=cursorOptions@entry=0, boundParams=boundParams@entry=0x0) at ../../../../../../../../../pgsql/source/REL9_3_STABLE/src/backend/tcop/postgres.c:753 -- Álvaro Herrera 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