pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Amit Kapila <akapila@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add worker type argument to logical replication worker functions
Date: Tue, 28 Oct 2025 05:52:13 +0000
Message-ID: <E1vDccv-003sKa-2F@gemulon.postgresql.org> (raw)

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(-)



Message-ID: <E1vDccv-003sKa-2F@gemulon.postgresql.org>
Permalink:  ../E1vDccv-003sKa-2F@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1vDccv-003sKa-2F@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: akapila@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Add worker type argument to logical replication worker functions
  In-Reply-To: <E1vDccv-003sKa-2F@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox