Re: index: specify sort order? - Mailing list pgsql-novice

From
Subject Re: index: specify sort order?
Date
Msg-id 04c601c5ab23$f52eb090$8d02a8c0@iwing
Whole thread Raw
In response to index: specify sort order?  (<me@alternize.com>)
Responses Re: index: specify sort order?
List pgsql-novice
hi stephan

yes, analyze is showing "index scan backwards". so for pg-sql it does not
make a difference in speed whether "index scan" is done forward/backward?
cool! in mssql it did make quite a difference to specify the prefered index
sort order, hence my question.

before i annoy the list with other migration-related, obvious questions, is
there a good documentation on migrating from mssql to pgsql?

cheers,
thomas


----- Original Message -----
From: "Stephan Szabo" <sszabo@megazone.bigpanda.com>
To: <me@alternize.com>
Cc: <pgsql-novice@postgresql.org>
Sent: Saturday, August 27, 2005 5:52 PM
Subject: Re: [NOVICE] index: specify sort order?


> On Sat, 27 Aug 2005 me@alternize.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?
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: Don't 'kill -9' the postmaster
>



pgsql-novice by date:

Previous
From: Stephan Szabo
Date:
Subject: Re: index: specify sort order?
Next
From: Stephan Szabo
Date:
Subject: Re: index: specify sort order?