forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit45d395c
committed
Be more consistent about whether to update the FSM while vacuuming.
Previously, when lazy_scan_noprune() was called and returned true, we wouldupdate the FSM immediately if the relation had no indexes or if the pagecontained no dead items. On the other hand, when lazy_scan_prune() wascalled, we would update the FSM if either of those things was true orif index vacuuming was disabled. Eliminate that behavioral difference byconsidering vacrel->do_index_vacuuming in both cases.Also, make lazy_scan_heap() responsible for deciding whether to updatethe FSM, instead of doing it inside lazy_scan_noprune(). This ismore consistent with the lazy_scan_prune() case. lazy_scan_noprune()still needs an output parameter for whether there are LP_DEAD itemson the page, but the real decision-making now happens in the caller.Patch by me, reviewed by Peter Geoghegan and Melanie Plageman.Discussion:http://postgr.es/m/CA+TgmoaOzvN1TcHd9iej=PR3fY40En1USxzOnXSR2CxCLaRM0g@mail.gmail.com1 parent6995863 commit45d395c
1 file changed
+30
-29
lines changedLines changed: 30 additions & 29 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
252 | 252 |
| |
253 | 253 |
| |
254 | 254 |
| |
255 |
| - | |
| 255 | + | |
256 | 256 |
| |
257 | 257 |
| |
258 | 258 |
| |
| |||
958 | 958 |
| |
959 | 959 |
| |
960 | 960 |
| |
961 |
| - | |
| 961 | + | |
962 | 962 |
| |
963 | 963 |
| |
964 | 964 |
| |
| |||
974 | 974 |
| |
975 | 975 |
| |
976 | 976 |
| |
977 |
| - | |
978 |
| - | |
| 977 | + | |
979 | 978 |
| |
980 | 979 |
| |
| 980 | + | |
981 | 981 |
| |
982 | 982 |
| |
983 |
| - | |
984 |
| - | |
985 |
| - | |
986 |
| - | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
987 | 997 |
| |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
988 | 1001 |
| |
989 | 1002 |
| |
990 | 1003 |
| |
| |||
1935 | 1948 |
| |
1936 | 1949 |
| |
1937 | 1950 |
| |
1938 |
| - | |
1939 |
| - | |
| 1951 | + | |
| 1952 | + | |
| 1953 | + | |
| 1954 | + | |
1940 | 1955 |
| |
1941 | 1956 |
| |
1942 | 1957 |
| |
1943 | 1958 |
| |
1944 | 1959 |
| |
1945 | 1960 |
| |
1946 |
| - | |
| 1961 | + | |
1947 | 1962 |
| |
1948 | 1963 |
| |
1949 | 1964 |
| |
| |||
1960 | 1975 |
| |
1961 | 1976 |
| |
1962 | 1977 |
| |
1963 |
| - | |
1964 | 1978 |
| |
1965 | 1979 |
| |
1966 | 1980 |
| |
| |||
2102 | 2116 |
| |
2103 | 2117 |
| |
2104 | 2118 |
| |
2105 |
| - | |
2106 |
| - | |
2107 |
| - | |
2108 |
| - | |
2109 |
| - | |
2110 |
| - | |
2111 |
| - | |
2112 |
| - | |
2113 |
| - | |
2114 |
| - | |
2115 | 2119 |
| |
2116 |
| - | |
| 2120 | + | |
2117 | 2121 |
| |
2118 | 2122 |
| |
2119 | 2123 |
| |
| |||
2138 | 2142 |
| |
2139 | 2143 |
| |
2140 | 2144 |
| |
2141 |
| - | |
2142 |
| - | |
2143 |
| - | |
2144 |
| - | |
2145 |
| - | |
2146 |
| - | |
2147 | 2145 |
| |
2148 | 2146 |
| |
2149 | 2147 |
| |
| |||
2159 | 2157 |
| |
2160 | 2158 |
| |
2161 | 2159 |
| |
| 2160 | + | |
| 2161 | + | |
| 2162 | + | |
2162 | 2163 |
| |
2163 | 2164 |
| |
2164 | 2165 |
| |
|
0 commit comments
Comments
(0)