mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +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:
@ -1939,8 +1939,11 @@ SET ENABLE_SEQSCAN TO OFF;
|
||||
Specifies the delay between activity rounds for WAL sender processes.
|
||||
In each round the WAL sender sends any WAL accumulated since the last
|
||||
round to the standby server. It then sleeps for
|
||||
<varname>wal_sender_delay</> milliseconds, and repeats. The default
|
||||
value is 200 milliseconds (<literal>200ms</>).
|
||||
<varname>wal_sender_delay</> milliseconds, and repeats. The sleep
|
||||
is interrupted by transaction commit, so the effects of a committed
|
||||
transaction are sent to standby servers as soon as the commit
|
||||
happens, regardless of this setting. The default value is one second
|
||||
(<literal>1s</>).
|
||||
Note that on many systems, the effective resolution of sleep delays is
|
||||
10 milliseconds; setting <varname>wal_sender_delay</> to a value that
|
||||
is not a multiple of 10 might have the same results as setting it to
|
||||
|
Reference in New Issue
Block a user