Re: Multi-key index not beeing used - bug? - Mailing list pgsql-performance

From Tom Lane
Subject Re: Multi-key index not beeing used - bug?
Date
Msg-id 21283.1159994034@sss.pgh.pa.us
Whole thread Raw
In response to Multi-key index not beeing used - bug?  (Tobias Brox <tobias@nordicbet.com>)
Responses Re: Multi-key index not beeing used - bug?
List pgsql-performance
Tobias Brox <tobias@nordicbet.com> writes:
> NBET=> explain select * from account_transaction where users_id=123456 order by created desc, id desc limit 10;

> We have indices on the users_id field and the (users_id, created)-tuple.

Neither of those indexes can provide the sort order the query is asking
for.

            regards, tom lane

pgsql-performance by date:

Previous
From: Tom Lane
Date:
Subject: Re: UPDATE becomes mired / win32
Next
From: Tobias Brox
Date:
Subject: Re: Multi-key index not beeing used - bug?