pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Use logical operator && instead of & in vacuumparallel.c. 2+ messages / 1 participants [nested] [flat]
* pgsql: Use logical operator && instead of & in vacuumparallel.c. @ 2022-08-22 03:34 Amit Kapila <akapila@postgresql.org> 0 siblings, 0 replies; 2+ messages in thread From: Amit Kapila @ 2022-08-22 03:34 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 ------ master Details ------- https://git.postgresql.org/pg/commitdiff/838f798f172d509f022841b82277ec84d108a379 Modified Files -------------- src/backend/commands/vacuumparallel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
* pgsql: Use logical operator && instead of & in vacuumparallel.c. @ 2022-08-22 03:34 Amit Kapila <akapila@postgresql.org> 0 siblings, 0 replies; 2+ messages in thread From: Amit Kapila @ 2022-08-22 03:34 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2022-08-22 03:34 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2022-08-22 03:34 pgsql: Use logical operator && instead of & in vacuumparallel.c. Amit Kapila <akapila@postgresql.org> 2022-08-22 03:34 pgsql: Use logical operator && instead of & in vacuumparallel.c. Amit Kapila <akapila@postgresql.org>
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