Re: COMMUTATOR doesn't seem to work

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "D'Arcy Cain" <darcy(at)druid(dot)net>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: COMMUTATOR doesn't seem to work
Date: 2012-06-21 16:18:36
Message-ID: 27084.1340295516@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

"D'Arcy Cain" <darcy(at)druid(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Florian Pflug 2012-06-21 16:20:59 Re: COMMUTATOR doesn't seem to work
Previous Message Edmon Begoli 2012-06-21 16:03:24 Re: Reseting undo/redo logs