Re: Indexes not used
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: "D. Duccini" <duccini@backpack.com>
Cc: David Olbersen <dave@slickness.org>, pgsql-novice@postgresql.org
Date: 2001-03-16T16:09:22Z
Lists: pgsql-novice
"D. Duccini" <duccini@backpack.com> writes: > Maybe I'm not getting something here...but how is a sequential scan EVER > faster than a B-tree / index lookup on a database with over 500,000 > records? If the system needs to fetch more than a small percentage of the records, then seqscan *will* be faster. The issue you are dealing with seems to be misestimation of the retrieval percentage for this particular query, causing the planner to guess wrong about which kind of plan to use. regards, tom lane