1
0
mirror of https://github.com/postgres/postgres.git synced 2025-05-15 19:15:29 +03:00

Check interrupts during hot standby waits

This commit is contained in:
Simon Riggs 2017-01-26 18:59:58 +00:00
parent 2a2bdcab2c
commit e8ee3d6b85

View File

@ -161,6 +161,8 @@ WaitExceedsMaxStandbyDelay(void)
{
TimestampTz ltime;
CHECK_FOR_INTERRUPTS();
/* Are we past the limit time? */
ltime = GetStandbyLimitTime();
if (ltime && GetCurrentTimestamp() >= ltime)