From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jim C. Nasby <jnasby@pervasive.com>
Cc: Andrus <eetasoft@online.ee>
Cc: pgsql-performance@postgresql.org
Subject: Re: Why date index is not used
Date: Thu, 08 Jun 2006 18:19:41 -0400
Message-ID: <2268.1149805181@sss.pgh.pa.us> (raw)
In-Reply-To: <20060608215745.GE45331@pervasive.com>
References: <e69rq9$2a1b$1@news.hub.org>
<196.1149794455@sss.pgh.pa.us>
<20060608215745.GE45331@pervasive.com>
"Jim C. Nasby" <jnasby@pervasive.com> writes:
> And even then you better have a pretty high correlation on the first
> column, otherwise you'll still get a seqscan.
Not with the LIMIT. (If he were fetching the whole table, very possibly
the sort would be the right plan anyway.)
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, jnasby@pervasive.com, eetasoft@online.ee
Subject: Re: Why date index is not used
In-Reply-To: <2268.1149805181@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