Refactor lazy_scan_prune() VM clear logic into helper Encapsulating the cases that clear the visibility map after vacuum phase I, when corruption is detected, into in a helper makes the code cleaner and enables further refactoring in future commits.
Author: Melanie Plageman <[email protected]> Reviewed-by: Andres Freund <[email protected]> Reviewed-by: Kirill Reshke <[email protected]> Reviewed-by: Chao Li <[email protected]> Reviewed-by: Andrey Borodin <[email protected]> Discussion: https://postgr.es/m/7ib3sa55sapwjlaz4sijbiq7iezna27kjvvvar4dpgkmadml6t%40gfpkkwmdnepx Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/19af794b660e3711d8b698aeedfc33e13dc235d8 Modified Files -------------- src/backend/access/heap/vacuumlazy.c | 131 ++++++++++++++++++++++------------- 1 file changed, 83 insertions(+), 48 deletions(-)
