]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Refactor logical worker synchronization code into a separate file.
authorAmit Kapila <akapila@postgresql.org>
Thu, 16 Oct 2025 05:10:50 +0000 (05:10 +0000)
committerAmit Kapila <akapila@postgresql.org>
Thu, 16 Oct 2025 05:10:50 +0000 (05:10 +0000)
commit41c674d2e31e8304a6edbcb5183d326798ba00f6
tree590620215a2e855f26223558abf8197d05592212
parent905e932f0922a837bb3e4e482089c7c2e98bea67
Refactor logical worker synchronization code into a separate file.

To support the upcoming addition of a sequence synchronization worker,
this patch extracts common synchronization logic shared by table sync
workers and the new sequence sync worker into a dedicated file. This
modularization improves code reuse, maintainability, and clarity in the
logical workers framework.

Author: vignesh C <vignesh21@gmail.com>
Author: Hou Zhijie <houzj.fnst@fujitsu.com>
Reviewed-by: shveta malik <shveta.malik@gmail.com>
Reviewed-by: Dilip Kumar <dilipbalaut@gmail.com>
Reviewed-by: Peter Smith <smithpb2250@gmail.com>
Reviewed-by: Hayato Kuroda <kuroda.hayato@fujitsu.com>
Reviewed-by: Chao Li <li.evan.chao@gmail.com>
Reviewed-by: Amit Kapila <amit.kapila16@gmail.com>
Discussion: https://postgr.es/m/CAA4eK1LC+KJiAkSrpE_NwvNdidw9F2os7GERUeSxSKv71gXysQ@mail.gmail.com
13 files changed:
src/backend/catalog/pg_subscription.c
src/backend/replication/logical/Makefile
src/backend/replication/logical/applyparallelworker.c
src/backend/replication/logical/meson.build
src/backend/replication/logical/syncutils.c [new file with mode: 0644]
src/backend/replication/logical/tablesync.c
src/backend/replication/logical/worker.c
src/bin/pg_dump/common.c
src/bin/pg_dump/pg_dump.c
src/bin/pg_dump/pg_dump.h
src/include/catalog/pg_subscription_rel.h
src/include/replication/worker_internal.h
src/tools/pgindent/typedefs.list