forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit2c2c8b5
Use scanned_pages to decide when to failsafe check.
Perform a failsafe check every time VACUUM's first heap scan scans afurther FAILSAFE_EVERY_PAGES pages, rather than using an approach basedon the number of physical blocks that our current blkno is from theblkno at the time of the previous failsafe check. That way VACUUM willperform a failsafe check every time it has scanned a uniform number ofpages, without it mattering when or how VACUUM skipped pages using thevisibility 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.com1 parentd7017cb commit2c2c8b5
1 file changed
+3
-6
lines changedLines changed: 3 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
94 | 94 |
| |
95 | 95 |
| |
96 | 96 |
| |
97 |
| - | |
| 97 | + | |
| 98 | + | |
98 | 99 |
| |
99 | 100 |
| |
100 | 101 |
| |
| |||
821 | 822 |
| |
822 | 823 |
| |
823 | 824 |
| |
824 |
| - | |
825 | 825 |
| |
826 | 826 |
| |
827 | 827 |
| |
| |||
895 | 895 |
| |
896 | 896 |
| |
897 | 897 |
| |
898 |
| - | |
899 |
| - | |
| 898 | + | |
900 | 899 |
| |
901 |
| - | |
902 |
| - | |
903 | 900 |
| |
904 | 901 |
| |
905 | 902 |
| |
|
0 commit comments
Comments
(0)