mirror of
https://github.com/postgres/postgres.git
synced 2025-08-14 02:22:38 +03:00
pgindent run for 9.6
This commit is contained in:
@@ -1192,9 +1192,9 @@ lazy_scan_heap(Relation onerel, LVRelStats *vacrelstats,
|
||||
}
|
||||
|
||||
/*
|
||||
* If the all-visible page is turned out to be all-frozen but not marked,
|
||||
* we should so mark it. Note that all_frozen is only valid if all_visible
|
||||
* is true, so we must check both.
|
||||
* If the all-visible page is turned out to be all-frozen but not
|
||||
* marked, we should so mark it. Note that all_frozen is only valid
|
||||
* if all_visible is true, so we must check both.
|
||||
*/
|
||||
else if (all_visible_according_to_vm && all_visible && all_frozen &&
|
||||
!VM_ALL_FROZEN(onerel, blkno, &vmbuffer))
|
||||
@@ -1660,7 +1660,7 @@ should_attempt_truncation(LVRelStats *vacrelstats)
|
||||
possibly_freeable = vacrelstats->rel_pages - vacrelstats->nonempty_pages;
|
||||
if (possibly_freeable > 0 &&
|
||||
(possibly_freeable >= REL_TRUNCATE_MINIMUM ||
|
||||
possibly_freeable >= vacrelstats->rel_pages / REL_TRUNCATE_FRACTION) &&
|
||||
possibly_freeable >= vacrelstats->rel_pages / REL_TRUNCATE_FRACTION) &&
|
||||
old_snapshot_threshold < 0)
|
||||
return true;
|
||||
else
|
||||
|
Reference in New Issue
Block a user