Re: How to make operator class?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Kim Yunhan" <spbear(at)hanmail(dot)net>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: How to make operator class?
Date: 2001-02-10 16:38:06
Message-ID: 3775.981823086@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

"Kim Yunhan" <spbear(at)hanmail(dot)net> writes:
> then, how to make operator class?

See the Programmer's Guide, particularly
http://www.postgresql.org/devel-corner/docs/postgres/xindex.htm

If this is a followup to your previous question about making a
reverse-order index, you'll need to start by making a support function
that delivers the reverse (negative) of what the existing btree
comparison function for the datatype does (see btint4cmp and friends).
The remaining operators to comprise the opclass are the same ones that
exist already, you just need to swap their positions (use '<' for '>'
etc). Good luck!

regards, tom lane

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Josh Berkus 2001-02-10 18:03:24 Re: How to make operator class?
Previous Message Najm Hashmi 2001-02-10 16:05:35 pgsql and cursor