Re: How to deal with order by, group by, distinct for user-defined types

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Ruey-Lung Hsiao <rlhsiao(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: How to deal with order by, group by, distinct for user-defined types
Date: 2004-11-21 08:14:38
Message-ID: 5732.1101024878@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Ruey-Lung Hsiao <rlhsiao(at)gmail(dot)com> writes:
> My question is: how do I find or define ordering operators for my
> user-defined type?

Create a default btree index operator class for the type. See
http://developer.postgresql.org/docs/postgres/xindex.html

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Thomas Hallgren 2004-11-21 08:16:05 Re: Error handling in plperl and pltcl
Previous Message Andrew Dunstan 2004-11-21 02:14:36 Re: New compile warnings