Re: COMMUTATOR doesn't seem to work - Mailing list pgsql-hackers

From D'Arcy Cain
Subject Re: COMMUTATOR doesn't seem to work
Date
Msg-id 4FE3F563.10504@druid.net
Whole thread Raw
In response to Re: COMMUTATOR doesn't seem to work  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: COMMUTATOR doesn't seem to work
List pgsql-hackers
On 12-06-22 12:22 AM, Tom Lane wrote:
> Um, an operator with different types on left and right cannot be its own
> commutator.

Understood.  I completely misunderstood the purpose of COMMUTATOR.  I
thought that it was telling the system that the procedure could be
called with the arguments reversed if it could not find a specific
procedure.  I see now what it is for.

So I have my type working now but I had to create a new C function
that take the opposite argument order.  Seems redundant but I could
not see a better way.

-- 
D'Arcy J.M. Cain <darcy@druid.net>         |  Democracy is three wolves
http://www.druid.net/darcy/                |  and a sheep voting on
+1 416 425 1212     (DoD#0082)    (eNTP)   |  what's for dinner.
IM: darcy@Vex.Net


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: COMMUTATOR doesn't seem to work
Next
From: Kyotaro HORIGUCHI
Date:
Subject: Re: pl/perl and utf-8 in sql_ascii databases