Check interrupts during hot standby waits
authorSimon Riggs <[email protected]>
Fri, 27 Jan 2017 12:15:02 +0000 (12:15 +0000)
committerSimon Riggs <[email protected]>
Fri, 27 Jan 2017 12:15:02 +0000 (12:15 +0000)
src/backend/storage/ipc/standby.c

index 292bed55c6123ec87159d3b2500350c58decff98..46152a3fda9f6e38dcf90233a1f83bd52a15a52e 100644 (file)
@@ -161,6 +161,8 @@ WaitExceedsMaxStandbyDelay(void)
 {
        TimestampTz ltime;
 
+       CHECK_FOR_INTERRUPTS();
+
        /* Are we past the limit time? */
        ltime = GetStandbyLimitTime();
        if (ltime && GetCurrentTimestamp() >= ltime)