Re: Precedence of bitwise operators

2022-11-20 Thread Tom Lane
Bauyrzhan Sakhariyev writes: > Hi! Do I get it right, that bitwise operations have the same precedence? Yes, that is what the documentation says: https://www.postgresql.org/docs/current/sql-syntax-lexical.html#SQL-PRECEDENCE Operator precedence is hard-wired into our parser, so we don't get to

Precedence of bitwise operators

2022-11-20 Thread Bauyrzhan Sakhariyev
erations precedence. I'm not saying it's a bug, rather trying to clarify as precedence of bitwise operators is different in programming languages, say c++ ( https://en.cppreference.com/w/c/language/operator_precedence) or java ( https://docs.oracle.com/javase/tutorial/java/nutsandbolts/operators.html)