Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 20E559FB750 for ; Mon, 23 Jul 2007 14:13:23 -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 85288-09 for ; Mon, 23 Jul 2007 14:13:18 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from floppy.pyrenet.fr (floppy.pyrenet.fr [194.116.145.2]) by postgresql.org (Postfix) with ESMTP id 4994A9FB70A for ; Mon, 23 Jul 2007 14:13:19 -0300 (ADT) Received: by floppy.pyrenet.fr (Postfix, from userid 106) id 980D930947; Mon, 23 Jul 2007 19:13:17 +0200 (MET DST) From: valgog X-Newsgroups: pgsql.performance Subject: Re: multicolumn index column order Date: Mon, 23 Jul 2007 17:13:16 -0000 Organization: http://groups.google.com Lines: 22 Message-ID: <1185210796.731691.206490@g4g2000hsf.googlegroups.com> References: <1185209223.224236.163350@57g2000hsv.googlegroups.com> <28463.1185210040@sss.pgh.pa.us> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Complaints-To: groups-abuse@google.com In-Reply-To: <28463.1185210040@sss.pgh.pa.us> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.5) Gecko/20070713 Firefox/2.0.0.5,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: g4g2000hsf.googlegroups.com; posting-host=62.220.8.122; posting-account=ps2QrAMAAAA6_jCuRt2JEIpn5Otqf_w0 To: pgsql-performance@postgresql.org X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.117 tagged_above=0 required=5 tests=AWL=0.116, BAYES_50=0.001 X-Spam-Level: X-Archive-Number: 200707/296 X-Sequence-Number: 25980 On Jul 23, 7:00 pm, t...@sss.pgh.pa.us (Tom Lane) wrote: > 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 > > ---------------------------(end of broadcast)--------------------------- > TIP 7: You can help support the PostgreSQL project by donating at > > http://www.postgresql.org/about/donate ok, thanks for a rapid answer, can live with the ((-flag), text_column) functional multicolumn index by now. Waiting for 8.3 :-)