Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id B12FFB5DBC5 for ; Wed, 22 Jun 2011 19:35:29 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 34490-10 for ; Wed, 22 Jun 2011 22:35:29 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by mail.postgresql.org (Postfix) with ESMTP id E3E3EB5D91F for ; Wed, 22 Jun 2011 19:35:28 -0300 (ADT) Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by wwwmaster.postgresql.org (8.14.3/8.14.3) with ESMTP id p5MMZSlJ031752 for ; Wed, 22 Jun 2011 22:35:28 GMT (envelope-from www@wwwmaster.postgresql.org) Received: (from www@localhost) by wwwmaster.postgresql.org (8.14.3/8.14.3/Submit) id p5MMZS45031751; Wed, 22 Jun 2011 22:35:28 GMT (envelope-from www) Date: Wed, 22 Jun 2011 22:35:28 GMT Message-Id: <201106222235.p5MMZS45031751@wwwmaster.postgresql.org> To: pgsql-bugs@postgresql.org Subject: BUG #6075: mergejoin early termination estimates bug or defficiency From: "Roman" Content-Type: text/plain; charset=utf-8 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 201106/197 X-Sequence-Number: 30576 The following bug has been logged online: Bug reference: 6075 Logged by: Roman Email address: roman_mir@hotmail.com PostgreSQL version: 9.0.3 Operating system: Red Hat 4.4.1-2, 64-bit Description: mergejoin early termination estimates bug or defficiency Details: Entered PG IRC, spoke with RhodiumToad, who advised that this must be reported as a bug or deficiency. http://pgsql.privatepaste.com/09af338ded - the SQL and EXPLAIN ANALYZE output, and http://explain.depesz.com/s/RDN8 - explanation. SQL took 30 seconds to perform, HashAggregate was 8239.96..8240.28 One missing index was added, took runtime to 27 seconds. Eventually executed "set enable_mergejoin=false;" command and runtime of the SQL went down to 38 MILLISECONDS.