Re: index: specify sort order?

From: Stephan Szabo <sszabo(at)megazone(dot)bigpanda(dot)com>
To: me(at)alternize(dot)com
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: index: specify sort order?
Date: 2005-08-27 15:52:55
Message-ID: 20050827085043.P73944@megazone.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On Sat, 27 Aug 2005 me(at)alternize(dot)com wrote:

> in ms-sql it is possible to specify the default order for an index (i.e.
> asc/desc). is this possible in pgsql as well, and if yes, how? i have
> some timestamp indices that i only use to sort the entries in descending
> sortorder...

Well, if it's a single column index and sort we should be able to use the
index backwards to do the sort (Explain would show Index Scan Backwards).
Can you give more information on what precisely you're doing?

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message me 2005-08-27 16:25:29 Re: index: specify sort order?
Previous Message me 2005-08-27 15:34:12 index: specify sort order?