aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/misc/postgresql.conf.sample
diff options
context:
space:
mode:
authorFujii Masao <fujii@postgresql.org>2015-02-23 20:55:17 +0900
committerFujii Masao <fujii@postgresql.org>2015-02-23 20:55:17 +0900
commit5d2b45e3f78a85639f30431181c06d4c3221c5a1 (patch)
tree845775ab6e3021da1a16b7a552d9e6989f6061a0 /src/backend/utils/misc/postgresql.conf.sample
parent2a3f6e368babdac7b586a7d43105af60fc08b1a3 (diff)
downloadpostgresql-5d2b45e3f78a85639f30431181c06d4c3221c5a1.tar.gz
postgresql-5d2b45e3f78a85639f30431181c06d4c3221c5a1.zip
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.
Diffstat (limited to 'src/backend/utils/misc/postgresql.conf.sample')
-rw-r--r--src/backend/utils/misc/postgresql.conf.sample2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/backend/utils/misc/postgresql.conf.sample b/src/backend/utils/misc/postgresql.conf.sample
index b053659f88e..29d8485964d 100644
--- a/src/backend/utils/misc/postgresql.conf.sample
+++ b/src/backend/utils/misc/postgresql.conf.sample
@@ -260,6 +260,8 @@
#wal_receiver_timeout = 60s # time that receiver waits for
# communication from master
# in milliseconds; 0 disables
+#wal_retrieve_retry_interval = 5s # time to wait before retrying to
+ # retrieve WAL after a failed attempt
#------------------------------------------------------------------------------