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

Поиск
Список
Период
Сортировка
От Amit Kapila
Тема pgsql: Use logical operator && instead of & in vacuumparallel.c.
Дата
Msg-id E1oPyCg-000dmf-Md@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
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(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Michael Paquier
Дата:
Сообщение: pgsql: Fix comment in walsender_private.h
Следующее
От: Thomas Munro
Дата:
Сообщение: pgsql: Remove configure probes for sockaddr_storage members.