public inbox for [email protected]  
help / color / mirror / Atom feed
From: Masahiko Sawada <[email protected]>
To: [email protected]
Subject: pgsql: Add GUC option to control maximum active replication origins.
Date: Fri, 21 Mar 2025 19:20:37 +0000
Message-ID: <[email protected]> (raw)

Add GUC option to control maximum active replication origins.

This commit introduces a new GUC option max_active_replication_origins
to control the maximum number of active replication
origins. Previously, this was controlled by
'max_replication_slots'. Having a separate GUC option provides better
flexibility for setting up subscribers, as they may not require
replication slots (for cascading replication) but always require
replication origins.

Author: Euler Taveira <[email protected]>
Reviewed-by: Amit Kapila <[email protected]>
Reviewed-by: Masahiko Sawada <[email protected]>
Reviewed-by: Peter Eisentraut <[email protected]>
Reviewed-by: vignesh C <[email protected]>
Discussion: https://postgr.es/m/[email protected]

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/04ff636cbce4b91fba1f334e1bc0dc88686e7b2d

Modified Files
--------------
doc/src/sgml/config.sgml                           | 26 +++------
doc/src/sgml/logical-replication.sgml              | 10 ++--
doc/src/sgml/ref/pg_createsubscriber.sgml          |  2 +-
src/backend/replication/logical/launcher.c         |  6 +-
src/backend/replication/logical/origin.c           | 66 ++++++++++------------
src/backend/utils/misc/guc_tables.c                | 12 ++++
src/backend/utils/misc/postgresql.conf.sample      |  2 +
src/bin/pg_basebackup/pg_createsubscriber.c        | 20 +++----
src/bin/pg_basebackup/t/040_pg_createsubscriber.pl |  4 +-
src/bin/pg_upgrade/check.c                         | 18 +++---
src/bin/pg_upgrade/t/004_subscription.pl           | 17 +++---
src/include/replication/origin.h                   |  3 +
12 files changed, 93 insertions(+), 93 deletions(-)



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: [email protected]
  Cc: [email protected], [email protected]
  Subject: Re: pgsql: Add GUC option to control maximum active replication origins.
  In-Reply-To: <[email protected]>

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

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