Re: Column correlation drifts, index ignored again

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: siracusa(at)mindspring(dot)com
Cc: Postgres Performance <pgsql-performance(at)postgresql(dot)org>
Subject: Re: Column correlation drifts, index ignored again
Date: 2004-02-22 23:40:26
Message-ID: 19441.1077493226@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

John Siracusa <siracusa(at)mindspring(dot)com> writes:
> I think the key is to get the planner to correctly ballpark the number of
> rows in the date range.

I thought it was. What you showed was

-> Index Scan using mytable_date_idx on mytable (cost=0.00..3071.70 rows=52155 width=23) (actual time=2.610..1688.111 rows=49679 loops=1)

which seemed plenty close enough to me.

regards, tom lane

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message John Siracusa 2004-02-23 00:09:07 Re: Column correlation drifts, index ignored again
Previous Message Tom Lane 2004-02-22 23:30:11 Re: General performance questions about postgres on Apple