Re: Precedence of '|' operator (was Re: [patch,rfc] binary operators on integers) - Mailing list pgsql-hackers

From Thomas Lockhart
Subject Re: Precedence of '|' operator (was Re: [patch,rfc] binary operators on integers)
Date
Msg-id 39EB1B06.B1A0A3C1@alumni.caltech.edu
Whole thread Raw
In response to Precedence of '|' operator (was Re: [patch,rfc] binary operators on integers)  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: Precedence of '|' operator (was Re: [patch,rfc] binary operators on integers)
List pgsql-hackers
> Well, that's a good point --- it isn't going to get any less painful to
> fix it later.  Do we want to just remove the special treatment of '|'
> and let it become one with the undifferentiated mass of Op, or do we
> want to try to set up reasonable precedence for all the bitwise
> operators (and if so, what should that be)?  The second choice has a
> greater chance of breaking existing apps because it's changing more
> operators ...
> Thomas, any opinions here?

I'd like to see closer adherence to the "usual" operator precedence. But
I really *hate* having to explicitly call out each rule in the a_expr,
b_expr, and/or c_expr productions. Any way around this?
                         - Thomas


pgsql-hackers by date:

Previous
From: Don Baccus
Date:
Subject: RE: AW: ALTER TABLE DROP COLUMN
Next
From: Zeugswetter Andreas SB
Date:
Subject: AW: AW: AW: ALTER TABLE DROP COLUMN