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

From Tom Lane
Subject Re: COMMUTATOR doesn't seem to work
Date
Msg-id 27084.1340295516@sss.pgh.pa.us
Whole thread Raw
In response to COMMUTATOR doesn't seem to work  (D'Arcy Cain <darcy@druid.net>)
Responses Re: COMMUTATOR doesn't seem to work
List pgsql-hackers
"D'Arcy Cain" <darcy@druid.net> writes:
> Maybe I am using it wrong but I get no error message when I use it.  I
> have a type called chkpass (a version is in the additional supplied
> modules) and I create the equality operator like this:

> CREATE OPERATOR = (
>          PROCEDURE = eq,
>          LEFTARG = chkpass,
>          RIGHTARG = text,
>          COMMUTATOR = =,
>          NEGATOR = <>
> );

Did you actually create a "text = chkpass" function and operator?
This declaration merely promises that you will provide one eventually.
The system does not have the ability to make one for you.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Edmon Begoli
Date:
Subject: Re: Reseting undo/redo logs
Next
From: Florian Pflug
Date:
Subject: Re: COMMUTATOR doesn't seem to work