"Johann Zuschlag" <zuschlag(at)online(dot)de> writes:
> create function numeric_neq(numeric,float8) returns bool as '
> select $1 = $2::numeric;
> ' language 'sql';
> create operator <> (
> leftarg=numeric,
> rightarg=float8,
> procedure=numeric_neq,
> commutator='<>',
> negator='',
^^^^^^^^^^
> restrict=eqsel,
> join=eqjoinsel
> );
Well, there's your problem...
For 7.2, I have added some error checking to the system that will
prevent it accepting invalid operator names in commutator/negator
parameters.
regards, tom lane