X-Original-To: pgsql-performance-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id E606F9FABE7 for ; Wed, 14 Jun 2006 23:37:06 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 21631-09 for ; Wed, 14 Jun 2006 23:37:01 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 728439FA10A for ; Wed, 14 Jun 2006 23:37:01 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id k5F2ated016555; Wed, 14 Jun 2006 22:36:55 -0400 (EDT) To: Jim Nasby cc: Shaun Thomas , pgsql-performance@postgresql.org Subject: Re: Confirmation of bad query plan generated by 7.4 In-reply-to: References: <9119.1150222168@sss.pgh.pa.us> <448EDFC4.8F27.00A9.0@leapfrogonline.com> <20060613211347.GB34196@pervasive.com> <10918.1150236282@sss.pgh.pa.us> <20060613223950.GK34196@pervasive.com> <18667.1150249849@sss.pgh.pa.us> Comments: In-reply-to Jim Nasby message dated "Wed, 14 Jun 2006 16:36:00 -0500" Date: Wed, 14 Jun 2006 22:36:55 -0400 Message-ID: <16554.1150339015@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/283 X-Sequence-Number: 19640 Jim Nasby writes: > On Jun 13, 2006, at 8:50 PM, Tom Lane wrote: >> Hmm ... worksforme. Could you provide a complete test case? > decibel=# create table date_test(d date not null, i int not null); > [etc] Not sure what you are driving at. The estimates are clearly not defaults (the default estimate would be 1/3rd of the table, or about 100mil rows). Are you expecting them to be the same? If so why? The comparison values are slightly different after all. regards, tom lane