summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon Riggs <simon@2ndQuadrant.com>2017-01-27 12:18:07 +0000
committerSimon Riggs <simon@2ndQuadrant.com>2017-01-27 12:18:07 +0000
commit332068a212c0357aa7bbbb0c187134ba3af32fbd (patch)
tree907ed444b0b1ff1a57c4c521bef36ebee91e84af /src
parent1ad163ef0130db4c371444a7e7fc2ecdd63b76bc (diff)
Check interrupts during hot standby waits
Diffstat (limited to 'src')
-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 bc57e7aec33..07f47cbd577 100644
--- a/src/backend/storage/ipc/standby.c
+++ b/src/backend/storage/ipc/standby.c
@@ -160,6 +160,8 @@ WaitExceedsMaxStandbyDelay(void)
{
TimestampTz ltime;
+ CHECK_FOR_INTERRUPTS();
+
/* Are we past the limit time? */
ltime = GetStandbyLimitTime();
if (ltime && GetCurrentTimestamp() >= ltime)