Re: Confirmation of bad query plan generated by 7.4

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jim Nasby <jnasby(at)pervasive(dot)com>
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 02:36:55
Message-ID: 16554.1150339015@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

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.

regards, tom lane

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Greg Stark 2006-06-15 03:33:53 Re: Postgres fsync off (not needed) with NetApp
Previous Message Bruce Momjian 2006-06-14 22:12:48 Re: Effects of cascading references in foreign keys