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 <[email protected]> Reviewed-by: shveta malik <[email protected]> Reviewed-by: Peter Smith <[email protected]> Reviewed-by: Chao Li <[email protected]> Reviewed-by: Hayato Kuroda <[email protected]> Reviewed-by: Amit Kapila <[email protected]> Discussion: https://postgr.es/m/caa4ek1lc+kjiaksrpe_nwvndidw9f2os7geruesxskv71gx...@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(-)
