Re: index in desc order - Mailing list pgsql-general

From Sergey Konoplev
Subject Re: index in desc order
Date
Msg-id AANLkTim-SrPX8ETVxjZFRrXAUevuf0wnXRnpDPfDBLVB@mail.gmail.com
Whole thread Raw
In response to Re: index in desc order  (AI Rumman <rummandba@gmail.com>)
List pgsql-general
On 2 November 2010 12:57, AI Rumman <rummandba@gmail.com> wrote:
> But I am using Postgresql 8.1. Is it possible here?

I am afraid not. You could try to do the index using kind of 1/field
trick but I am not sure if it performs better than backward index scan
in general.

>
> On Tue, Nov 2, 2010 at 3:42 PM, Szymon Guz <mabewlun@gmail.com> wrote:
>>
>>
>> On 2 November 2010 10:36, AI Rumman <rummandba@gmail.com> wrote:
>>>
>>> Is it possible to create an index in descending order?
>>
>> yes...
>> create index i on t(i desc);
>>
>> regards
>> Szymon
>



--
Sergey Konoplev

Blog: http://gray-hemp.blogspot.com /
Linkedin: http://ru.linkedin.com/in/grayhemp /
JID/GTalk: gray.ru@gmail.com / Skype: gray-hemp

pgsql-general by date:

Previous
From: Szymon Guz
Date:
Subject: Re: Dealing with locking on batch updates.
Next
From: Jonathan Tripathy
Date:
Subject: Re: JDBC Transactions