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-23 03:38:40
Message-ID: 20484.1077507520@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:
> Does the planner get estimates from both plans before deciding whether or
> not to use the one that references the date index?

The rowcount estimate is made prior to the plan cost estimate, much less
the plan selection. So you'd see the same number either way.

regards, tom lane

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Eric Jain 2004-02-23 11:48:02 Slow join using network address function
Previous Message Tom Lane 2004-02-23 03:24:29 Re: General performance questions about postgres on Apple