pgsql: Simplify the logical worker type checks by using the switch on w

Поиск
Список
Период
Сортировка
От Amit Kapila
Тема pgsql: Simplify the logical worker type checks by using the switch on w
Дата
Msg-id E1qYI9R-000Eu5-W1@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Simplify the logical worker type checks by using the switch on worker type.

The current code uses if/else statements at various places to take worker
specific actions. Change those to use the switch on worker type added by
commit 2a8b40e368. This makes code easier to read and understand.

Author: Peter Smith
Reviewed-by: Amit Kapila, Hou Zhijie
Discussion: http://postgr.es/m/CAHut+PttPSuP0yoZ=9zLDXKqTJ=d0bhxwKaEaNcaym1XqcvDEg@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/1cdc6d86bfc3bbe2189a4d9d54a4fa8b6c98ea0a

Modified Files
--------------
src/backend/replication/logical/launcher.c  | 57 ++++++++++++++++-------------
src/backend/replication/logical/tablesync.c | 33 +++++++++++------
src/backend/replication/logical/worker.c    | 43 +++++++++++++---------
3 files changed, 79 insertions(+), 54 deletions(-)


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: pgsql: doc: PG 16 relnotes: adjust RANGE/ROWS window item
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: pgsql: Improve BRIN minmax-multi opclass test coverage