aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/windowfuncs.c
diff options
context:
space:
mode:
authorPeter Geoghegan <pg@bowt.ie>2022-12-22 10:41:40 -0800
committerPeter Geoghegan <pg@bowt.ie>2022-12-22 10:41:40 -0800
commit07eef53955ea9885dd3e4701b7eaa34ccdf2ae02 (patch)
tree2fee7a53e94bafc3ff4bdace282f754b43cf471b /src/backend/utils/adt/windowfuncs.c
parent4ce3afb82ecfbf64d4f6247e725004e1da30f47c (diff)
downloadpostgresql-07eef53955ea9885dd3e4701b7eaa34ccdf2ae02.tar.gz
postgresql-07eef53955ea9885dd3e4701b7eaa34ccdf2ae02.zip
Use scanned_pages to decide when to failsafe check.
Perform a failsafe check every time VACUUM's first heap scan scans a further FAILSAFE_EVERY_PAGES pages, rather than using an approach based on the number of physical blocks that our current blkno is from the blkno at the time of the previous failsafe check. That way VACUUM will perform a failsafe check every time it has scanned a uniform number of pages, without it mattering when or how VACUUM skipped pages using the visibility map. Sami Imseih, with changes to FAILSAFE_EVERY_PAGES comments added by me. Author: Sami Imseih <simseih@amazon.com> Reviewed-By: Peter Geoghegan <pg@bowt.ie> Discussion: https://postgr.es/m/401CE010-4049-4B94-9961-0B610A5D254D%40amazon.com
Diffstat (limited to 'src/backend/utils/adt/windowfuncs.c')
0 files changed, 0 insertions, 0 deletions