We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a8d333 commit df791bfCopy full SHA for df791bf
src/backend/postmaster/autovacuum.c
@@ -1704,7 +1704,8 @@ AutoVacWorkerMain(int argc, char *argv[])
1704
recentMulti = ReadNextMultiXactId();
1705
1706
LWLockAcquire(DoAutovacuumLock, LW_SHARED);
1707
- do_autovacuum();
+ if (!SFS_IN_SNAPSHOT()) /* Do not perform autovacuum in snapshot */
1708
+ do_autovacuum();
1709
LWLockRelease(DoAutovacuumLock);
1710
}
1711
@@ -1961,10 +1962,6 @@ do_autovacuum(void)
1961
1962
bool found_concurrent_worker = false;
1963
int i;
1964
- /* Do not perform autovacuum in snapshot */
1965
- if (!SFS_IN_SNAPSHOT())
1966
- return;
1967
-
1968
/*
1969
* StartTransactionCommand and CommitTransactionCommand will automatically
1970
* switch to other contexts. We need this one to keep the list of
0 commit comments