Re: Multiple Order By Criteria

From: Stephan Szabo <sszabo(at)megazone(dot)bigpanda(dot)com>
To: J(at)Planeti(dot)Biz
Cc: Josh Berkus <josh(at)agliodbs(dot)com>, pgsql-performance(at)postgresql(dot)org
Subject: Re: Multiple Order By Criteria
Date: 2006-01-17 23:39:03
Message-ID: 20060117152915.T50406@megazone.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance


On Tue, 17 Jan 2006 J(at)Planeti(dot)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

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message J 2006-01-18 00:23:25 Re: Multiple Order By Criteria
Previous Message Josh Berkus 2006-01-17 23:18:07 Re: Suspending SELECTs