Re: Overloading '<' operator

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: trisuresh(at)yahoo(dot)co(dot)in (Suresh Tri), pgsql-general(at)postgresql(dot)org
Subject: Re: Overloading '<' operator
Date: 2004-08-31 15:08:48
Message-ID: 29511.1093964928@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> Am Dienstag, 31. August 2004 15:18 schrieb Suresh Tri:
>> Can any one tell how to use the previous version of ooperator while
>> overloading one.

> Don't call the previous operator, call the function underlying the previous
> operator.

Or put them in different schemas and use a schema-qualified operator
reference (x operator(foo.<) y). But if you actually *replace* the
previous definition of the operator, there's no way you can expect
to still be able to use it.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Joe Maldonado 2004-08-31 15:09:07 sequences in schemas
Previous Message Dennis Gearon 2004-08-31 15:08:30 functions/stored procedures