Re: index: specify sort order?

From: <me(at)alternize(dot)com>
To: "Stephan Szabo" <sszabo(at)megazone(dot)bigpanda(dot)com>
Cc: <pgsql-novice(at)postgresql(dot)org>
Subject: Re: index: specify sort order?
Date: 2005-08-27 16:25:29
Message-ID: 04c601c5ab23$f52eb090$8d02a8c0@iwing
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)megazone(dot)bigpanda(dot)com>
To: <me(at)alternize(dot)com>
Cc: <pgsql-novice(at)postgresql(dot)org>
Sent: Saturday, August 27, 2005 5:52 PM
Subject: Re: [NOVICE] index: specify sort order?

> 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?
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: Don't 'kill -9' the postmaster
>

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Stephan Szabo 2005-08-27 18:03:16 Re: index: specify sort order?
Previous Message Stephan Szabo 2005-08-27 15:52:55 Re: index: specify sort order?