Re: SELECT ignoring index even though ORDER BY and LIMIT present - Mailing list pgsql-performance

From Szymon Guz
Subject Re: SELECT ignoring index even though ORDER BY and LIMIT present
Date
Msg-id AANLkTik_WsMVgYzPjH_C0vjq9XqW-73SlmNnGKVPKVkR@mail.gmail.com
Whole thread Raw
In response to SELECT ignoring index even though ORDER BY and LIMIT present  (Jori Jovanovich <jori@dimensiology.com>)
List pgsql-performance


2010/6/2 Jori Jovanovich <jori@dimensiology.com>
hi,

I have a problem space where the main goal is to search backward in time for events.  Time can go back very far into the past, and so the
table can get quite large.  However, the vast majority of queries are all satisfied by relatively recent data.  I have an index on the row creation date and I would like almost all of my queries to have a query plan looking something like:



[CUT]

Do you have autovacuum running? Have you tried updating statistics?

regards
Szymon Guz 

pgsql-performance by date:

Previous
From: "Kevin Grittner"
Date:
Subject: Re: SELECT ignoring index even though ORDER BY and LIMIT present
Next
From: Tom Lane
Date:
Subject: Re: SELECT ignoring index even though ORDER BY and LIMIT present