postgres.git / summary / log / commit / refs
commit ace2cd80a028fc8775146c946d3aff87810e4392
Author: Simon Riggs <simon@2ndQuadrant.com>
Date: Fri Jan 27 12:15:02 2017 +0000
First released in: 10.0, 9.2.20, 9.3.16, 9.4.11, 9.5.6, 9.6.2
Check interrupts during hot standby waits
src/backend/storage/ipc/standby.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/backend/storage/ipc/standby.c b/src/backend/storage/ipc/standby.c
index 292bed55c61..46152a3fda9 100644
--- a/src/backend/storage/ipc/standby.c
+++ b/src/backend/storage/ipc/standby.c
@@ -161,6 +161,8 @@ WaitExceedsMaxStandbyDelay(void)
{
TimestampTz ltime;
+ CHECK_FOR_INTERRUPTS();
+
/* Are we past the limit time? */
ltime = GetStandbyLimitTime();
if (ltime && GetCurrentTimestamp() >= ltime)
[parent: 8fef0c34143b]