Skip to content

Commit 7d25958

Browse files
committed
Clean up some GUC declarations and comments
This adjusts a few things for GUCs related to logical replication, replication slots and WAL senders, in the shape of incorrect comments and values inconsistent with their initial default value. Author: Peter Smith Reviewed-by: Nathan Bossart, Tom Lane, Justin Pryzby Discussion: https://postgr.es/m/CAHut+PtHE0XSfjjRQ6D4v7+dqzCw=d+1a64ujra4EX8aoc_Z+w@mail.gmail.com
1 parent e109e43 commit 7d25958

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

src/backend/replication/logical/launcher.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
/* max sleep time between cycles (3min) */
5353
#define DEFAULT_NAPTIME_PER_CYCLE 180000L
5454

55+
/* GUC variables */
5556
int max_logical_replication_workers = 4;
5657
int max_sync_workers_per_subscription = 2;
5758

src/backend/replication/slot.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ ReplicationSlotCtlData *ReplicationSlotCtl = NULL;
9797
/* My backend's replication slot in the shared memory array */
9898
ReplicationSlot *MyReplicationSlot = NULL;
9999

100-
/* GUCs */
101-
int max_replication_slots = 0; /* the maximum number of replication
100+
/* GUC variable */
101+
int max_replication_slots = 10; /* the maximum number of replication
102102
* slots */
103103

104104
static void ReplicationSlotShmemExit(int code, Datum arg);

src/backend/replication/walsender.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ bool am_cascading_walsender = false; /* Am I cascading WAL to another
118118
* standby? */
119119
bool am_db_walsender = false; /* Connected to a database? */
120120

121-
/* User-settable parameters for walsender */
122-
int max_wal_senders = 0; /* the maximum number of concurrent
121+
/* GUC variables */
122+
int max_wal_senders = 10; /* the maximum number of concurrent
123123
* walsenders */
124124
int wal_sender_timeout = 60 * 1000; /* maximum time to send one WAL
125125
* data message */

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy