mirror of
https://github.com/postgres/postgres.git
synced 2025-07-05 07:21:24 +03:00
Increase the default for wal_sender_delay from 200ms to 1s. Now that WAL
sender is immediately woken up by transaction commit, there's no need to wake up so aggressively.
This commit is contained in:
@ -73,7 +73,7 @@ bool am_walsender = false; /* Am I a walsender process ? */
|
||||
|
||||
/* User-settable parameters for walsender */
|
||||
int max_wal_senders = 0; /* the maximum number of concurrent walsenders */
|
||||
int WalSndDelay = 200; /* max sleep time between some actions */
|
||||
int WalSndDelay = 1000; /* max sleep time between some actions */
|
||||
|
||||
/*
|
||||
* These variables are used similarly to openLogFile/Id/Seg/Off,
|
||||
|
@ -1843,7 +1843,7 @@ static struct config_int ConfigureNamesInt[] =
|
||||
GUC_UNIT_MS
|
||||
},
|
||||
&WalSndDelay,
|
||||
200, 1, 10000, NULL, NULL
|
||||
1000, 1, 10000, NULL, NULL
|
||||
},
|
||||
|
||||
{
|
||||
|
@ -188,7 +188,7 @@
|
||||
|
||||
#max_wal_senders = 0 # max number of walsender processes
|
||||
# (change requires restart)
|
||||
#wal_sender_delay = 200ms # walsender cycle time, 1-10000 milliseconds
|
||||
#wal_sender_delay = 1s # walsender cycle time, 1-10000 milliseconds
|
||||
#wal_keep_segments = 0 # in logfile segments, 16MB each; 0 disables
|
||||
#vacuum_defer_cleanup_age = 0 # number of xacts by which cleanup is delayed
|
||||
|
||||
|
Reference in New Issue
Block a user