Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7d25958

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 commentsand values inconsistent with their initial default value.Author: Peter SmithReviewed-by: Nathan Bossart, Tom Lane, Justin PryzbyDiscussion:https://postgr.es/m/CAHut+PtHE0XSfjjRQ6D4v7+dqzCw=d+1a64ujra4EX8aoc_Z+w@mail.gmail.com
1 parente109e43 commit7d25958

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
#defineDEFAULT_NAPTIME_PER_CYCLE 180000L
5454

55+
/* GUC variables */
5556
intmax_logical_replication_workers=4;
5657
intmax_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-
intmax_replication_slots=0;/* the maximum number of replication
100+
/*GUC variable */
101+
intmax_replication_slots=10;/* the maximum number of replication
102102
* slots */
103103

104104
staticvoidReplicationSlotShmemExit(intcode,Datumarg);

‎src/backend/replication/walsender.c

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

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp