pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <heikki.linnakangas@iki.fi>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Use logical OR (||) rather than bitwise OR (|) for bools
Date: Thu, 26 Nov 2026 08:06:23 +0000
Message-ID: <E1xWUUp-00000000N5D-3pvV@gemulon.postgresql.org> (raw)

Use logical OR (||) rather than bitwise OR (|) for bools

Harmless, but let's be tidy.

Author: Mikhail Gribkov <youzhick@gmail.com>
Reviewed-by: Xuneng Zhou <xunengzhou@gmail.com>
Reviewed-by: Chao Li <li.evan.chao@gmail.com>
Discussion: https://www.postgresql.org/message-id/CAMEv5_uzqc9=anZvJBvhXtd1ry3x71nDZn_irTq4uuAuD_qSqA@mail.gmail...

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/9872a0de75b1d4b178681008543a0e2dffd5fda4

Modified Files
--------------
src/backend/catalog/namespace.c      | 2 +-
src/test/modules/test_aio/test_aio.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)



Message-ID: <E1xWUUp-00000000N5D-3pvV@gemulon.postgresql.org>
Permalink:  ../E1xWUUp-00000000N5D-3pvV@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1xWUUp-00000000N5D-3pvV@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: heikki.linnakangas@iki.fi
  Subject: Re: pgsql: Use logical OR (||) rather than bitwise OR (|) for bools
  In-Reply-To: <E1xWUUp-00000000N5D-3pvV@gemulon.postgresql.org>
  References: <E1xWUUp-00000000N5D-3pvV@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox