aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2010-09-15 10:35:05 +0000
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2010-09-15 10:35:05 +0000
commit723d0184e2972f21db0f85feef3d35f0cb9b3298 (patch)
tree0fc71e9bb51fc6f347f7ec630c71e3362d8e496d /src/include
parent236b6bc29e532822a366b56404ecaf1d906229bf (diff)
downloadpostgresql-723d0184e2972f21db0f85feef3d35f0cb9b3298.tar.gz
postgresql-723d0184e2972f21db0f85feef3d35f0cb9b3298.zip
Use a latch to make startup process wake up and replay immediately when
new WAL arrives via streaming replication. This reduces the latency, and also allows us to use a longer polling interval, which is good for energy efficiency. We still need to poll to check for the appearance of a trigger file, but the interval is now 5 seconds (instead of 100ms), like when waiting for a new WAL segment to appear in WAL archive.
Diffstat (limited to 'src/include')
-rw-r--r--src/include/access/xlog.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/access/xlog.h b/src/include/access/xlog.h
index 3d8ffbba615..ea156d38345 100644
--- a/src/include/access/xlog.h
+++ b/src/include/access/xlog.h
@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/include/access/xlog.h,v 1.116 2010/08/12 23:24:54 rhaas Exp $
+ * $PostgreSQL: pgsql/src/include/access/xlog.h,v 1.117 2010/09/15 10:35:05 heikki Exp $
*/
#ifndef XLOG_H
#define XLOG_H
@@ -303,5 +303,6 @@ extern TimeLineID GetRecoveryTargetTLI(void);
extern void HandleStartupProcInterrupts(void);
extern void StartupProcessMain(void);
+extern void WakeupRecovery(void);
#endif /* XLOG_H */