Re: fmgr_info: function 0: cache lookup failed

From: "Booth, Robert" <Robert_Booth(at)intuit(dot)com>
To: "'Tom Lane'" <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "Booth, Robert" <Robert_Booth(at)intuit(dot)com>
Cc: "'pgsql-general(at)postgresql(dot)org'" <pgsql-general(at)postgresql(dot)org>
Subject: Re: fmgr_info: function 0: cache lookup failed
Date: 2002-03-12 17:48:47
Message-ID: 419D2EB7B461D411A53B00508B69181D037B28C3@sdex02.sd.intuit.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Booth, Robert" <Robert_Booth(at)intuit(dot)com> writes:
>> CREATE FUNCTION MsAccessBool (bool, int4) RETURNS BOOL AS ...

>> CREATE OPERATOR = (
>> LEFTARG = BOOL,
>> RIGHTARG = INT4,
>> PROCEDURE = MsAccessBool,
>> COMMUTATOR = '=',
>> NEGATOR = '<>',
>> RESTRICT = EQSEL,
>> JOIN = EQJOINSEL);

> So I did this, and now I'm getting the "fmgr_info: function 0: cache
lookup
> failed" message.

> You are telling the system that there will be an int4 = bool operator
> (the commutator) as well as a bool <> int4 operator (the negator).
> If you are not going to supply same, don't declare that you will.

> The error message could be more helpful, perhaps :-(

> regards, tom lane

So are you telling me that I need to create another OPERATOR?

And if so would this be the correct syntax?

CREATE OPERATOR <> (
LEFTARG = BOOL,
RIGHTARG = INT4,
PROCEDURE = MsAccessBool,
COMMUTATOR = '=',
NEGATOR = '<>',
RESTRICT = EQSEL,
JOIN = EQJOINSEL);

Rob

Browse pgsql-general by date

  From Date Subject
Next Message Dave Rolland 2002-03-12 17:54:14 vacuum causes pg_xlog directory to grow until out of disk space.
Previous Message Joseph Koenig 2002-03-12 17:46:46 Re: cannot initdb