Thanks to visit codestin.com
Credit goes to postgrespro.com

Re: [HACKERS] Operator definitions - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [HACKERS] Operator definitions
Date
Msg-id [email protected]
Whole thread Raw
In response to Operator definitions  (Adriaan Joubert <[email protected]>)
List pgsql-hackers
Adriaan Joubert <[email protected]> writes:
> I've got a big problem: I had an operator defined as follows:
> CREATE OPERATOR ^ (
>   leftarg = bit1,
>   rightarg = bit1,
>   procedure = bit1xor
> );
> and this was fine until 6.5.1, but in 6.5.2 I get
> ERROR:  parser: parse error at or near "^"

It looks to me like '^' and '|' have been left out of the alternatives
for MathOp in src/backend/parser/gram.y.  It could be they were
deliberately omitted, but I bet it's just an oversight.
        regards, tom lane


pgsql-hackers by date:

Previous
From: The Hermit Hacker
Date:
Subject: Re: [HACKERS] All things equal, we are still alot slower then MySQL?
Next
From: Lamar Owen
Date:
Subject: Re: [HACKERS] Compile timing