diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index c75e9c09de5..7cf29b69ea5 100644 --- a/src/backend/access/transam/xlog.c +++ b/src/backend/access/transam/xlog.c @@ -5802,7 +5802,8 @@ recoveryApplyDelay(XLogRecord *record) TimestampDifference(GetCurrentTimestamp(), recoveryDelayUntilTime, &secs, µsecs); - if (secs <= 0 && microsecs <= 0) + /* NB: We're ignoring waits below min_apply_delay's resolution. */ + if (secs <= 0 && microsecs / 1000 <= 0) break; elog(DEBUG2, "recovery apply delay %ld seconds, %d milliseconds",