pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephan Szabo <sszabo@megazone.bigpanda.com>
To: J@Planeti.Biz
Cc: Josh Berkus <josh@agliodbs.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Multiple Order By Criteria
Date: Tue, 17 Jan 2006 15:39:03 -0800 (PST)
Message-ID: <20060117152915.T50406@megazone.bigpanda.com> (raw)
In-Reply-To: <063d01c61bba$2d97fc00$681e140a@fatchubby>
References: <05c301c61bb1$d88c6a00$681e140a@fatchubby>
	<200601171425.38772.josh@agliodbs.com>
	<20060117143952.D47156@megazone.bigpanda.com>
	<063d01c61bba$2d97fc00$681e140a@fatchubby>


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



view thread (12+ messages)  latest in thread

Message-ID: <20060117152915.T50406@megazone.bigpanda.com>
Permalink:  ../20060117152915.T50406@megazone.bigpanda.com/
Also on:    postgresql.org/message-id/20060117152915.T50406@megazone.bigpanda.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: sszabo@megazone.bigpanda.com, J@Planeti.Biz, josh@agliodbs.com
  Subject: Re: Multiple Order By Criteria
  In-Reply-To: <20060117152915.T50406@megazone.bigpanda.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox