Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TJR9U-0005rJ-NZ for pgsql-bugs@postgresql.org; Wed, 03 Oct 2012 15:46:24 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TJR9P-000094-35 for pgsql-bugs@postgresql.org; Wed, 03 Oct 2012 15:46:24 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id q93FkHrg006005; Wed, 3 Oct 2012 11:46:17 -0400 (EDT) From: Tom Lane To: maxim.boguk@gmail.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #7580: repeatable test case for the BUG #7579 In-reply-to: References: Comments: In-reply-to maxim.boguk@gmail.com message dated "Wed, 03 Oct 2012 10:32:19 -0000" Date: Wed, 03 Oct 2012 11:46:17 -0400 Message-ID: <6004.1349279177@sss.pgh.pa.us> X-Pg-Spam-Score: -4.0 (----) X-Archive-Number: 201210/23 X-Sequence-Number: 34323 maxim.boguk@gmail.com writes: > create table t1 as select id from generate_series(1,100000) as g(id); > create table t2 as select id from generate_series(1,100000) as g(id); > alter table t1 add primary key (id); > alter table t2 add primary key (id); > analyze t1; > analyze t2; > explain select * from t1 > left outer join > ( > select distinct t2.id from t2 > where t2.id>100 > ) as _t on _t.id=t1.id > where > (t1.id>100 or (t1.id<100 and _t.id IS NOT NULL)); > The connection to the server was lost. Hm, I get an Assert trap in the planner, which means this is probably my fault. Will look. regards, tom lane