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

index d07393313a1920f7fcbbbd004a8e3ffd8f8531e8..9e139871e24fe6172c4c740a4f93a1e94fc6209f 100644 (file)
@@ -158,6 +158,8 @@ WaitExceedsMaxStandbyDelay(void)
 {
    TimestampTz ltime;
 
+   CHECK_FOR_INTERRUPTS();
+
    /* Are we past the limit time? */
    ltime = GetStandbyLimitTime();
    if (ltime && GetCurrentTimestamp() >= ltime)