mirror of
https://github.com/postgres/postgres.git
synced 2025-07-08 11:42:09 +03:00
Refactor GetOldestXmin() to use flags
Replace ignoreVacuum parameter with more flexible flags. Author: Eiji Seki Review: Haribabu Kommi
This commit is contained in:
@ -1000,7 +1000,7 @@ acquire_sample_rows(Relation onerel, int elevel,
|
||||
totalblocks = RelationGetNumberOfBlocks(onerel);
|
||||
|
||||
/* Need a cutoff xmin for HeapTupleSatisfiesVacuum */
|
||||
OldestXmin = GetOldestXmin(onerel, true);
|
||||
OldestXmin = GetOldestXmin(onerel, PROCARRAY_FLAGS_VACUUM);
|
||||
|
||||
/* Prepare for sampling block numbers */
|
||||
BlockSampler_Init(&bs, totalblocks, targrows, random());
|
||||
|
Reference in New Issue
Block a user