pgsql: Add worker type argument to logical replication worker functions

Поиск
Список
Период
Сортировка
От Amit Kapila
Тема pgsql: Add worker type argument to logical replication worker functions
Дата
Msg-id E1vDccv-003sKa-2F@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Add worker type argument to logical replication worker functions.

Extend logicalrep_worker_stop, logicalrep_worker_wakeup, and
logicalrep_worker_find to accept a worker type argument. This change
enables differentiation between logical replication worker types, such as
apply workers and table sync workers. While preserving existing behavior,
it lays the groundwork for upcoming patch to add sequence synchronization
workers.

Author: Vignesh C <vignesh21@gmail.com>
Reviewed-by: shveta malik <shveta.malik@gmail.com>
Reviewed-by: Peter Smith <smithpb2250@gmail.com>
Reviewed-by: Chao Li <li.evan.chao@gmail.com>
Reviewed-by: Hayato Kuroda <kuroda.hayato@fujitsu.com>
Reviewed-by: Amit Kapila <amit.kapila16@gmail.com>
Discussion: https://postgr.es/m/CAA4eK1LC+KJiAkSrpE_NwvNdidw9F2os7GERUeSxSKv71gXysQ@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/3e8e05596a020f043f1efd6406e4511ea85170bd

Modified Files
--------------
src/backend/commands/subscriptioncmds.c     |  4 +--
src/backend/replication/logical/launcher.c  | 40 +++++++++++++++++++----------
src/backend/replication/logical/syncutils.c |  3 ++-
src/backend/replication/logical/tablesync.c | 11 +++++---
src/backend/replication/logical/worker.c    |  8 +++---
src/include/replication/worker_internal.h   |  9 ++++---
6 files changed, 49 insertions(+), 26 deletions(-)


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