aboutsummaryrefslogtreecommitdiff
path: root/src/include/access/xlog.h
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/include/access/xlog.h
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/include/access/xlog.h')
-rw-r--r--src/include/access/xlog.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/access/xlog.h b/src/include/access/xlog.h
index 138deaf7c8f..be27a856486 100644
--- a/src/include/access/xlog.h
+++ b/src/include/access/xlog.h
@@ -93,6 +93,7 @@ extern int CheckPointSegments;
extern int wal_keep_segments;
extern int XLOGbuffers;
extern int XLogArchiveTimeout;
+extern int wal_retrieve_retry_interval;
extern bool XLogArchiveMode;
extern char *XLogArchiveCommand;
extern bool EnableHotStandby;