aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Riggs <simon@2ndQuadrant.com>2017-01-26 18:59:58 +0000
committerSimon Riggs <simon@2ndQuadrant.com>2017-01-26 18:59:58 +0000
commite8ee3d6b859a18d7f7375ceb9e04d256eb18aaec (patch)
tree8b0b047df924aab47f0d310b74efe154ad2bc769
parent2a2bdcab2c5c6081a8f53fce8741bc0717b7d2d0 (diff)
downloadpostgresql-e8ee3d6b859a18d7f7375ceb9e04d256eb18aaec.tar.gz
postgresql-e8ee3d6b859a18d7f7375ceb9e04d256eb18aaec.zip
Check interrupts during hot standby waits
-rw-r--r--src/backend/storage/ipc/standby.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/backend/storage/ipc/standby.c b/src/backend/storage/ipc/standby.c
index 9cc12817660..6532240dd19 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)