forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitb0f7425
committed
Explain pruning pgstats accounting subtleties.
Add a comment explaining why the pgstats accounting used duringopportunistic heap pruning operations (to maintain the current number ofdead tuples in the relation) needs to compensate by subtracting away thenumber of new LP_DEAD items. This is needed so it can avoid completelyforgetting about tuples that become LP_DEAD items during pruning -- theyshould still count.It seems more natural to discuss this issue at the only relevant callsite (opportunistic pruning), since the same issue does not apply to theonly other caller (the VACUUM call site). Move everything there too.Author: Peter Geoghegan <pg@bowt.ie>Discussion:https://postgr.es/m/CAH2-Wzm7f+A6ej650gi_ifTgbhsadVW5cujAL3punpupHff5Yg@mail.gmail.com1 parent05d8785 commitb0f7425
File tree
3 files changed
+31
-18
lines changed- src
- backend/access/heap
- include/access
3 files changed
+31
-18
lines changedLines changed: 28 additions & 16 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
182 | 182 |
| |
183 | 183 |
| |
184 | 184 |
| |
185 |
| - | |
186 |
| - | |
187 |
| - | |
188 |
| - | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
189 | 208 |
| |
190 | 209 |
| |
191 | 210 |
| |
| |||
212 | 231 |
| |
213 | 232 |
| |
214 | 233 |
| |
215 |
| - | |
216 |
| - | |
217 |
| - | |
218 |
| - | |
| 234 | + | |
| 235 | + | |
219 | 236 |
| |
220 | 237 |
| |
221 | 238 |
| |
| |||
227 | 244 |
| |
228 | 245 |
| |
229 | 246 |
| |
230 |
| - | |
| 247 | + | |
231 | 248 |
| |
232 | 249 |
| |
233 | 250 |
| |
| |||
381 | 398 |
| |
382 | 399 |
| |
383 | 400 |
| |
384 |
| - | |
385 |
| - | |
386 |
| - | |
387 |
| - | |
388 |
| - | |
389 |
| - | |
390 |
| - | |
| 401 | + | |
| 402 | + | |
391 | 403 |
| |
392 | 404 |
| |
393 | 405 |
| |
|
Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1712 | 1712 |
| |
1713 | 1713 |
| |
1714 | 1714 |
| |
| 1715 | + | |
1715 | 1716 |
| |
1716 | 1717 |
| |
1717 | 1718 |
| |
| |||
1737 | 1738 |
| |
1738 | 1739 |
| |
1739 | 1740 |
| |
1740 |
| - | |
| 1741 | + | |
1741 | 1742 |
| |
1742 | 1743 |
| |
1743 | 1744 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
186 | 186 |
| |
187 | 187 |
| |
188 | 188 |
| |
189 |
| - | |
| 189 | + | |
190 | 190 |
| |
191 | 191 |
| |
192 | 192 |
| |
|
0 commit comments
Comments
(0)