Re: Why is my (empty) partial index query slow?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Richard Frith-Macdonald <richard(at)tiptree(dot)demon(dot)co(dot)uk>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Why is my (empty) partial index query slow?
Date: 2006-06-23 00:43:52
Message-ID: 9442.1151023432@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Richard Frith-Macdonald <richard(at)tiptree(dot)demon(dot)co(dot)uk> writes:
> What has confused me is why a query using an empty index should be
> slow, irrespective of the state of the table that the index applies to.

Is it actually empty, or have you just deleted-and-not-yet-vacuumed
all the rows in the index?

I had hoped to see comparative EXPLAIN ANALYZE output for the fast and
slow cases. Maybe when it gets slow again you could redo the explain.

regards, tom lane

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message luchot 2006-06-23 10:12:03 Occupation bloc in pages of table
Previous Message Tom Lane 2006-06-23 00:31:10 Re: Query hanging/not finishing inconsistently