Re: [PERFORM] Why isn't this index being used?

2004-10-19 Thread Knutsen, Mark
(Why don't replies automatically go to the list?) Sure enough, quoting the constants fixes the problem. Is it a best practice to always quote constants? > -Original Message- > From: Doug Y [mailto:[EMAIL PROTECTED] > Sent: Tuesday, October 19, 2004 11:28 AM > To: K

[PERFORM] Why isn't this index being used?

2004-10-19 Thread Knutsen, Mark
The following is from a database of several hundred million rows of real data that has been VACUUM ANALYZEd.   Why isn't the index being used for a query that seems tailor-made for it? The results (6,300 rows) take about ten minutes to retrieve with a sequential scan.   A copy of this d