From: | Oleg Bartunov <oleg(at)sai(dot)msu(dot)su> |
---|---|
To: | "Marc G(dot) Fournier" <scrappy(at)postgresql(dot)org> |
Cc: | pgsql-sql(at)postgresql(dot)org |
Subject: | Re: Reverse Index ... how to ... |
Date: | 2006-04-05 18:20:51 |
Message-ID: | Pine.GSO.4.63.0604052220030.23110@ra.sai.msu.su |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
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(at)hub(dot)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(at)sai(dot)msu(dot)su, http://www.sai.msu.su/~megera/
phone: +007(495)939-16-83, +007(495)939-23-83
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2006-04-05 19:06:03 | Re: Reverse Index ... how to ... |
Previous Message | Marc G. Fournier | 2006-04-05 18:14:42 | Reverse Index ... how to ... |