Index: src/backend/postmaster/autovacuum.c =================================================================== --- src/backend/postmaster/autovacuum.c (HEAD) +++ src/backend/postmaster/autovacuum.c (FIX) @@ -1048,9 +1048,9 @@ * What we want here if to skip if next_worker falls between * the current time and the current time plus naptime. */ - if (timestamp_cmp_internal(current_time, next) > 0) + if (timestamp_cmp_internal(current_time, next) >= 0) skipit = false; - else if (timestamp_cmp_internal(next, curr_plus_naptime) > 0) + else if (timestamp_cmp_internal(next, curr_plus_naptime) >= 0) skipit = false; else skipit = true;