Re: Confirmation of bad query plan generated by 7.4

From: "Jim C(dot) Nasby" <jnasby(at)pervasive(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Shaun Thomas <sthomas(at)leapfrogonline(dot)com>, pgsql-performance(at)postgresql(dot)org
Subject: Re: Confirmation of bad query plan generated by 7.4
Date: 2006-06-15 15:50:00
Message-ID: 20060615155000.GJ34196@pervasive.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Wed, Jun 14, 2006 at 10:36:55PM -0400, Tom Lane wrote:
> Jim Nasby <jnasby(at)pervasive(dot)com> 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.

Yes... I was expecting that since we're looking at a date field that the
timestamp would get cast to a date. Sorry I wasn't clear on that...
--
Jim C. Nasby, Sr. Engineering Consultant jnasby(at)pervasive(dot)com
Pervasive Software http://pervasive.com work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Jim C. Nasby 2006-06-15 15:54:20 Re: Postgres fsync off (not needed) with NetApp
Previous Message Tom Lane 2006-06-15 15:44:08 Re: Postgres consuming way too much memory???