Re: operator class for user defined type

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Kjetil Haaland <kjetil(dot)haaland(at)student(dot)uib(dot)no>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: operator class for user defined type
Date: 2005-02-21 16:30:34
Message-ID: 489.1109003434@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Kjetil Haaland <kjetil(dot)haaland(at)student(dot)uib(dot)no> writes:
> I have created my own user defined type, and an operator class for this type.
> Then i can use the order by clause with this type, but it is sorting with the
> lowest value on top. Is it possible to get it to sort with the highest value
> on top?

ORDER BY foo DESC

regards, tom lane

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Larry Rosenman 2005-02-21 16:42:48 Re: operator class for user defined type
Previous Message Kjetil Haaland 2005-02-21 14:16:40 operator class for user defined type