Re: Multiple Order By Criteria

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: Multiple Order By Criteria
Дата
Msg-id 20060117152915.T50406@megazone.bigpanda.com
обсуждение исходный текст
Ответ на Re: Multiple Order By Criteria  (J@Planeti.Biz)
Список pgsql-performance
On Tue, 17 Jan 2006 J@Planeti.Biz wrote:

> I created the index like this:
>
> CREATE INDEX rcbee_idx
>   ON detail_summary
>   USING btree
>   (receipt, carrier_id, batchnum, encounternum, encounter_id);
>
> Is this correct ?

That would work if you were asking for all the columns ascending or
descending, but we don't currently use it for mixed orders.

> How do I make a reverse opclass ?

There's some information at the following:
http://archives.postgresql.org/pgsql-novice/2005-10/msg00254.php
http://archives.postgresql.org/pgsql-general/2005-01/msg00121.php
http://archives.postgresql.org/pgsql-general/2004-06/msg00565.php

В списке pgsql-performance по дате отправления:

Предыдущее
От: Josh Berkus
Дата:
Сообщение: Re: Suspending SELECTs
Следующее
От: J@Planeti.Biz
Дата:
Сообщение: Re: Multiple Order By Criteria