X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 7240811F6600; Wed, 5 Apr 2006 15:21:06 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 93986-05; Wed, 5 Apr 2006 15:21:02 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- X-Greylist: from auto-whitelisted by SQLgrey- Received: from ra.sai.msu.su (ra.sai.msu.su [158.250.29.2]) by postgresql.org (Postfix) with ESMTP id BFA7C11F6B2E; Wed, 5 Apr 2006 15:20:53 -0300 (ADT) Received: from ra (ra [158.250.29.2]) by ra.sai.msu.su (8.13.4/8.13.4) with ESMTP id k35IKpMw027841; Wed, 5 Apr 2006 22:20:51 +0400 (MSD) Date: Wed, 5 Apr 2006 22:20:51 +0400 (MSD) From: Oleg Bartunov X-X-Sender: megera@ra.sai.msu.su To: "Marc G. Fournier" cc: pgsql-sql@postgresql.org Subject: Re: Reverse Index ... how to ... In-Reply-To: <20060405151239.F947@ganymede.hub.org> Message-ID: References: <20060405151239.F947@ganymede.hub.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.458 required=5 tests=[AWL=-0.021, DNS_FROM_RFC_ABUSE=0.479] X-Spam-Score: 0.458 X-Spam-Level: X-Archive-Number: 200604/23 X-Sequence-Number: 24832 On Wed, 5 Apr 2006, Marc G. Fournier wrote: > > I'm still searching through Google and whatnot, but not finding anything off > the bat ... is there some way of creating a 'REVERSE INDEX' on a column in a > table? > > For instance, when I do a 'CLUSTER' to sort a table based on an INDEX, I'd > like to sort it in reverse order, so would need the INDEX to go from > 'GREATEST to LOWEST', vs 'LOWEST to GREATEST' ... use something like select * into new_table from old_table order by some_key desc; > > Thx > > ---- > Marc G. Fournier Hub.Org Networking Services (http://www.hub.org) > Email: scrappy@hub.org Yahoo!: yscrappy ICQ: 7615664 > > ---------------------------(end of broadcast)--------------------------- > TIP 5: don't forget to increase your free space map settings > Regards, Oleg _____________________________________________________________ Oleg Bartunov, Research Scientist, Head of AstroNet (www.astronet.ru), Sternberg Astronomical Institute, Moscow University, Russia Internet: oleg@sai.msu.su, http://www.sai.msu.su/~megera/ phone: +007(495)939-16-83, +007(495)939-23-83