Received: from magus.postgresql.org ([87.238.57.229]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TJMFb-00025J-Bu for pgsql-bugs@postgresql.org; Wed, 03 Oct 2012 10:32:23 +0000 Received: from mahout.postgresql.org ([98.129.198.123]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TJMFY-0003uX-Ku for pgsql-bugs@postgresql.org; Wed, 03 Oct 2012 10:32:22 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TJMFX-0000PC-Rg for pgsql-bugs@postgresql.org; Wed, 03 Oct 2012 10:32:19 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1TJMFX-0002Cd-7K for pgsql-bugs@postgresql.org; Wed, 03 Oct 2012 10:32:19 +0000 Date: Wed, 03 Oct 2012 10:32:19 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #7580: repeatable test case for the BUG #7579 To: pgsql-bugs@postgresql.org From: maxim.boguk@gmail.com X-Pg-Spam-Score: -3.1 (---) X-Archive-Number: 201210/19 X-Sequence-Number: 34319 The following bug has been logged on the website: Bug reference: 7580 Logged by: Maxim Boguk Email address: maxim.boguk@gmail.com PostgreSQL version: 9.2.1 Operating system: Linux Description: = 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=3Dt1.id where (t1.id>100 or (t1.id<100 and _t.id IS NOT NULL)); The connection to the server was lost.