- Notifications
You must be signed in to change notification settings - Fork28
Commitf54106f
committed
Fix full-table-vacuum request mechanism for MultiXactIds
While autovacuum dutifully launched anti-multixact-wraparound vacuumswhen the multixact "age" was reached, the vacuum code was not aware thatit needed to make them be full table vacuums. As the resultingpartial-table vacuums aren't capable of actually increasing relminmxid,autovacuum continued to launch anti-wraparound vacuums that didn't havethe intended effect, until age of relfrozenxid caused the vacuum tofinally be a full table one via vacuum_freeze_table_age.To fix, introduce logic for multixacts similar to that for plainTransactionIds, using the same GUCs.Backpatch to 9.3, where permanent MultiXactIds were introduced.Andres Freund, some cleanup by Álvaro1 parent76a31c6 commitf54106f
File tree
6 files changed
+87
-28
lines changed- src
- backend
- access/transam
- commands
- include
- access
- commands
6 files changed
+87
-28
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2374 | 2374 | | |
2375 | 2375 | | |
2376 | 2376 | | |
| 2377 | + | |
| 2378 | + | |
| 2379 | + | |
| 2380 | + | |
| 2381 | + | |
| 2382 | + | |
| 2383 | + | |
| 2384 | + | |
| 2385 | + | |
| 2386 | + | |
| 2387 | + | |
| 2388 | + | |
| 2389 | + | |
| 2390 | + | |
| 2391 | + | |
2377 | 2392 | | |
2378 | 2393 | | |
2379 | 2394 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
179 | | - | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
180 | 183 | | |
181 | 184 | | |
182 | 185 | | |
| |||
226 | 229 | | |
227 | 230 | | |
228 | 231 | | |
| 232 | + | |
229 | 233 | | |
230 | 234 | | |
231 | 235 | | |
| |||
853 | 857 | | |
854 | 858 | | |
855 | 859 | | |
856 | | - | |
857 | | - | |
858 | | - | |
| 860 | + | |
859 | 861 | | |
860 | 862 | | |
861 | 863 | | |
862 | | - | |
| 864 | + | |
| 865 | + | |
863 | 866 | | |
864 | 867 | | |
865 | 868 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
376 | 376 | | |
377 | 377 | | |
378 | 378 | | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
379 | 397 | | |
380 | 398 | | |
381 | 399 | | |
382 | 400 | | |
383 | 401 | | |
384 | 402 | | |
385 | 403 | | |
386 | | - | |
387 | | - | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
388 | 407 | | |
389 | 408 | | |
390 | 409 | | |
391 | 410 | | |
| 411 | + | |
392 | 412 | | |
393 | 413 | | |
394 | 414 | | |
| |||
441 | 461 | | |
442 | 462 | | |
443 | 463 | | |
444 | | - | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
445 | 475 | | |
446 | 476 | | |
447 | 477 | | |
| 478 | + | |
| 479 | + | |
448 | 480 | | |
449 | 481 | | |
450 | 482 | | |
| |||
459 | 491 | | |
460 | 492 | | |
461 | 493 | | |
462 | | - | |
463 | | - | |
| 494 | + | |
| 495 | + | |
464 | 496 | | |
465 | 497 | | |
466 | 498 | | |
467 | 499 | | |
468 | 500 | | |
469 | | - | |
470 | | - | |
471 | | - | |
472 | | - | |
473 | | - | |
474 | | - | |
| 501 | + | |
475 | 502 | | |
476 | 503 | | |
477 | | - | |
478 | | - | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
479 | 507 | | |
480 | | - | |
481 | | - | |
482 | | - | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
483 | 511 | | |
484 | | - | |
| 512 | + | |
485 | 513 | | |
486 | 514 | | |
487 | 515 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
183 | | - | |
| 183 | + | |
| 184 | + | |
184 | 185 | | |
185 | 186 | | |
186 | 187 | | |
| |||
203 | 204 | | |
204 | 205 | | |
205 | 206 | | |
206 | | - | |
207 | | - | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
208 | 216 | | |
209 | | - | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
210 | 220 | | |
211 | 221 | | |
212 | 222 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| 90 | + | |
| 91 | + | |
90 | 92 | | |
91 | 93 | | |
92 | 94 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | | - | |
163 | | - | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
164 | 165 | | |
165 | 166 | | |
166 | 167 | | |
| |||
0 commit comments
Comments
(0)