Re: Precedence of bitwise operators

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bauyrzhan Sakhariyev <baurzhansahariev(at)gmail(dot)com>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: Precedence of bitwise operators
Date: 2022-11-20 21:42:20
Message-ID: 2898362.1668980540@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Bauyrzhan Sakhariyev <baurzhansahariev(at)gmail(dot)com> 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 have a lot of flexibility in assigning precedences for any except
a very small set of operator names.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Thomas Munro 2022-11-20 21:53:52 Re: More efficient build farm animal wakeup?
Previous Message Thomas Munro 2022-11-20 21:31:15 Re: Reducing power consumption on idle servers