From: Tom Lane <tgl@sss.pgh.pa.us>
To: Tobias Brox <tobias@nordicbet.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Multi-key index not beeing used - bug?
Date: Wed, 04 Oct 2006 16:33:54 -0400
Message-ID: <21283.1159994034@sss.pgh.pa.us> (raw)
In-Reply-To: <20061004181243.GB9871@oppetid.no>
References: <20061004181243.GB9871@oppetid.no>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: tgl@sss.pgh.pa.us, tobias@nordicbet.com
Subject: Re: Multi-key index not beeing used - bug?
In-Reply-To: <21283.1159994034@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox