Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-general by date

Next:From: Joe MaldonadoDate: 2004-08-31 15:09:07
Subject: sequences in schemas
Previous:From: Dennis GearonDate: 2004-08-31 15:08:30
Subject: functions/stored procedures

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group