From: | Sergey Konoplev <gray(dot)ru(at)gmail(dot)com> |
---|---|
To: | AI Rumman <rummandba(at)gmail(dot)com> |
Cc: | Szymon Guz <mabewlun(at)gmail(dot)com>, pgsql-general General <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: index in desc order |
Date: | 2010-11-02 10:07:59 |
Message-ID: | AANLkTim-SrPX8ETVxjZFRrXAUevuf0wnXRnpDPfDBLVB@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On 2 November 2010 12:57, AI Rumman <rummandba(at)gmail(dot)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(at)gmail(dot)com> wrote:
>>
>>
>> On 2 November 2010 10:36, AI Rumman <rummandba(at)gmail(dot)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(dot)ru(at)gmail(dot)com / Skype: gray-hemp
From | Date | Subject | |
---|---|---|---|
Next Message | Jonathan Tripathy | 2010-11-02 10:29:01 | Re: JDBC Transactions |
Previous Message | Szymon Guz | 2010-11-02 10:02:47 | Re: Dealing with locking on batch updates. |