From 723d0184e2972f21db0f85feef3d35f0cb9b3298 Mon Sep 17 00:00:00 2001 From: Heikki Linnakangas Date: Wed, 15 Sep 2010 10:35:05 +0000 Subject: 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. --- src/include/access/xlog.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/include/access') 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 */ -- cgit v1.2.3