diff options
author | Masahiko Sawada <msawada@postgresql.org> | 2025-03-21 12:20:15 -0700 |
---|---|---|
committer | Masahiko Sawada <msawada@postgresql.org> | 2025-03-21 12:20:15 -0700 |
commit | 04ff636cbce4b91fba1f334e1bc0dc88686e7b2d (patch) | |
tree | b312f82dff3129a246c20f19e25aff7a803c8c06 /src/backend/utils/misc/guc_tables.c | |
parent | 0e032a2240a98669546023f7707030ea3ce4ded7 (diff) | |
download | postgresql-04ff636cbce4b91fba1f334e1bc0dc88686e7b2d.tar.gz postgresql-04ff636cbce4b91fba1f334e1bc0dc88686e7b2d.zip |
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 <euler@eulerto.com>
Reviewed-by: Amit Kapila <amit.kapila16@gmail.com>
Reviewed-by: Masahiko Sawada <sawada.mshk@gmail.com>
Reviewed-by: Peter Eisentraut <peter@eisentraut.org>
Reviewed-by: vignesh C <vignesh21@gmail.com>
Discussion: https://postgr.es/m/b81db436-8262-4575-b7c4-bc0c1551000b@app.fastmail.com
Diffstat (limited to 'src/backend/utils/misc/guc_tables.c')
-rw-r--r-- | src/backend/utils/misc/guc_tables.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/backend/utils/misc/guc_tables.c b/src/backend/utils/misc/guc_tables.c index 97cfd6e5a82..17d28f458f2 100644 --- a/src/backend/utils/misc/guc_tables.c +++ b/src/backend/utils/misc/guc_tables.c @@ -3375,6 +3375,18 @@ struct config_int ConfigureNamesInt[] = }, { + {"max_active_replication_origins", + PGC_POSTMASTER, + REPLICATION_SUBSCRIBERS, + gettext_noop("Sets the maximum number of active replication origins."), + NULL + }, + &max_active_replication_origins, + 10, 0, MAX_BACKENDS, + NULL, NULL, NULL + }, + + { {"log_rotation_age", PGC_SIGHUP, LOGGING_WHERE, gettext_noop("Sets the amount of time to wait before forcing " "log file rotation."), |