pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Amit Kapila <akapila@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Use logical operator && instead of & in vacuumparallel.c.
Date: Mon, 22 Aug 2022 03:34:19 +0000
Message-ID: <E1oPyCg-000dmf-Md@gemulon.postgresql.org> (raw)

Use logical operator && instead of & in vacuumparallel.c.

As such the current usage of & won't produce incorrect results but it
would be better to use && to short-circuit the evaluation of second
condition when the same is not required.

Author: Ranier Vilela
Reviewed-by: Tom Lane, Bharath Rupireddy
Backpatch-through: 15, where it was introduced
Discussion: https://postgr.es/m/CAEudQApL8QcoYwQuutkWKY_h7gBY8F0Xs34YKfc7-G0i83K_pw@mail.gmail.com

Branch
------
REL_15_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/254d79f0b23dfe107594c90ee8375165422db2c4

Modified Files
--------------
src/backend/commands/vacuumparallel.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)



view thread (2+ messages)  latest in thread

Message-ID: <E1oPyCg-000dmf-Md@gemulon.postgresql.org>
Permalink:  ../E1oPyCg-000dmf-Md@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1oPyCg-000dmf-Md@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: akapila@postgresql.org
  Subject: Re: pgsql: Use logical operator && instead of & in vacuumparallel.c.
  In-Reply-To: <E1oPyCg-000dmf-Md@gemulon.postgresql.org>
  References: <E1oPyCg-000dmf-Md@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