Re: index: specify sort order?

Поиск
Список
Период
Сортировка
От
Тема Re: index: specify sort order?
Дата
Msg-id 04c601c5ab23$f52eb090$8d02a8c0@iwing
обсуждение исходный текст
Ответ на index: specify sort order?  (<me@alternize.com>)
Ответы Re: index: specify sort order?  (Stephan Szabo <sszabo@megazone.bigpanda.com>)
Список 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 по дате отправления:

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: index: specify sort order?
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: index: specify sort order?