Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 4bd8ed3

Browse files
Introduce sending servers as new category for replication params
Fujii Masao
1 parent 6307fff commit 4bd8ed3

File tree

3 files changed

+15
-7
lines changed

3 files changed

+15
-7
lines changed

src/backend/utils/misc/guc.c

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -557,6 +557,8 @@ const char *const config_group_names[] =
557557
gettext_noop("Write-Ahead Log / Archiving"),
558558
/* REPLICATION */
559559
gettext_noop("Replication"),
560+
/* REPLICATION_SENDING */
561+
gettext_noop("Replication / Sending Servers"),
560562
/* REPLICATION_MASTER */
561563
gettext_noop("Replication / Master Server"),
562564
/* REPLICATION_STANDBY */
@@ -1918,7 +1920,7 @@ static struct config_int ConfigureNamesInt[] =
19181920
},
19191921

19201922
{
1921-
{"wal_keep_segments", PGC_SIGHUP, REPLICATION_MASTER,
1923+
{"wal_keep_segments", PGC_SIGHUP, REPLICATION_SENDING,
19221924
gettext_noop("Sets the number of WAL files held for standby servers."),
19231925
NULL
19241926
},
@@ -1986,7 +1988,7 @@ static struct config_int ConfigureNamesInt[] =
19861988

19871989
{
19881990
/* see max_connections */
1989-
{"max_wal_senders", PGC_POSTMASTER, REPLICATION_MASTER,
1991+
{"max_wal_senders", PGC_POSTMASTER, REPLICATION_SENDING,
19901992
gettext_noop("Sets the maximum number of simultaneously running WAL sender processes."),
19911993
NULL
19921994
},
@@ -1996,7 +1998,7 @@ static struct config_int ConfigureNamesInt[] =
19961998
},
19971999

19982000
{
1999-
{"wal_sender_delay", PGC_SIGHUP, REPLICATION_MASTER,
2001+
{"wal_sender_delay", PGC_SIGHUP, REPLICATION_SENDING,
20002002
gettext_noop("WAL sender sleep time between WAL replications."),
20012003
NULL,
20022004
GUC_UNIT_MS
@@ -2007,7 +2009,7 @@ static struct config_int ConfigureNamesInt[] =
20072009
},
20082010

20092011
{
2010-
{"replication_timeout", PGC_SIGHUP, REPLICATION_MASTER,
2012+
{"replication_timeout", PGC_SIGHUP, REPLICATION_SENDING,
20112013
gettext_noop("Sets the maximum time to wait for WAL replication."),
20122014
NULL,
20132015
GUC_UNIT_MS

src/backend/utils/misc/postgresql.conf.sample

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,19 +194,24 @@
194194
# REPLICATION
195195
#------------------------------------------------------------------------------
196196

197-
# - Master Server -
197+
# - Sending Server(s) -
198198

199-
# These settings are ignored on a standby server
199+
# Set these on the master and on any standby that will send replication data
200200

201201
#max_wal_senders = 0 # max number of walsender processes
202202
# (change requires restart)
203203
#wal_sender_delay = 1s # walsender cycle time, 1-10000 milliseconds
204204
#wal_keep_segments = 0 # in logfile segments, 16MB each; 0 disables
205-
#vacuum_defer_cleanup_age = 0 # number of xacts by which cleanup is delayed
206205
#replication_timeout = 60s # in milliseconds; 0 disables
206+
207+
# - Master Server -
208+
209+
# These settings are ignored on a standby server
210+
207211
#synchronous_standby_names = '' # standby servers that provide sync rep
208212
# comma-separated list of application_name
209213
# from standby(s); '*' = all
214+
#vacuum_defer_cleanup_age = 0 # number of xacts by which cleanup is delayed
210215

211216
# - Standby Servers -
212217

src/include/utils/guc_tables.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ enum config_group
6969
WAL_CHECKPOINTS,
7070
WAL_ARCHIVING,
7171
REPLICATION,
72+
REPLICATION_SENDING,
7273
REPLICATION_MASTER,
7374
REPLICATION_STANDBY,
7475
QUERY_TUNING,

0 commit comments

Comments
 (0)