]> granicus.if.org Git - postgresql/commit
Add GUC to control the time to wait before retrieving WAL after failed attempt.
authorFujii Masao <fujii@postgresql.org>
Mon, 23 Feb 2015 11:55:17 +0000 (20:55 +0900)
committerFujii Masao <fujii@postgresql.org>
Mon, 23 Feb 2015 11:55:17 +0000 (20:55 +0900)
commit5d2b45e3f78a85639f30431181c06d4c3221c5a1
tree845775ab6e3021da1a16b7a552d9e6989f6061a0
parent2a3f6e368babdac7b586a7d43105af60fc08b1a3
Add GUC to control the time to wait before retrieving WAL after failed attempt.

Previously when the standby server failed to retrieve WAL files from any sources
(i.e., streaming replication, local pg_xlog directory or WAL archive), it always
waited for five seconds (hard-coded) before the next attempt. For example,
this is problematic in warm-standby because restore_command can fail
every five seconds even while new WAL file is expected to be unavailable for
a long time and flood the log files with its error messages.

This commit adds new parameter, wal_retrieve_retry_interval, to control that
wait time.

Alexey Vasiliev and Michael Paquier, reviewed by Andres Freund and me.
doc/src/sgml/config.sgml
src/backend/access/transam/xlog.c
src/backend/utils/misc/guc.c
src/backend/utils/misc/postgresql.conf.sample
src/include/access/xlog.h