Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 83D6A9FB408 for ; Mon, 23 Jul 2007 14:00:45 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 82676-06 for ; Mon, 23 Jul 2007 14:00:41 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 5E3BB9FA4E4 for ; Mon, 23 Jul 2007 14:00:42 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.1/8.14.1) with ESMTP id l6NH0eue028464; Mon, 23 Jul 2007 13:00:40 -0400 (EDT) To: valgog cc: pgsql-performance@postgresql.org Subject: Re: multicolumn index column order In-reply-to: <1185209223.224236.163350@57g2000hsv.googlegroups.com> References: <1185209223.224236.163350@57g2000hsv.googlegroups.com> Comments: In-reply-to valgog message dated "Mon, 23 Jul 2007 16:47:03 -0000" Date: Mon, 23 Jul 2007 13:00:40 -0400 Message-ID: <28463.1185210040@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200707/295 X-Sequence-Number: 25979 valgog writes: > how to build an multicolumn index with one column order ASCENDING and > another column order DESCENDING? Use 8.3 ;-) In existing releases you could fake it with a custom reverse-sorting operator class, but it's a pain in the neck to create one. regards, tom lane