From: Tom Lane <tgl@sss.pgh.pa.us>
To: siracusa@mindspring.com
Cc: Postgres Performance <pgsql-performance@postgresql.org>
Subject: Re: Column correlation drifts, index ignored again
Date: Sun, 22 Feb 2004 18:40:26 -0500
Message-ID: <19441.1077493226@sss.pgh.pa.us> (raw)
In-Reply-To: <BC5E98B7.2DCB2%siracusa@mindspring.com>
References: <BC5E98B7.2DCB2%siracusa@mindspring.com>
John Siracusa <siracusa@mindspring.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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: tgl@sss.pgh.pa.us, siracusa@mindspring.com
Subject: Re: Column correlation drifts, index ignored again
In-Reply-To: <19441.1077493226@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox