- Notifications
You must be signed in to change notification settings - Fork5
Commitbbb6e55
committed
Make VACUUM avoid waiting for a cleanup lock, where possible.
In a regular VACUUM, it's OK to skip pages for which a cleanup lockisn't immediately available; the next VACUUM will deal with them. Ifwe're scanning the entire relation to advance relfrozenxid, we mightneed to wait, but only if there are tuples on the page that actuallyrequire freezing. These changes should greatly reduce the incidenceof of vacuum processes getting "stuck".Simon Riggs and Robert Haas1 parentbd23969 commitbbb6e55
File tree
3 files changed
+122
-4
lines changed- src
- backend
- access/heap
- commands
- include/access
3 files changed
+122
-4
lines changedLines changed: 38 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3841 | 3841 |
| |
3842 | 3842 |
| |
3843 | 3843 |
| |
| 3844 | + | |
| 3845 | + | |
| 3846 | + | |
| 3847 | + | |
| 3848 | + | |
| 3849 | + | |
| 3850 | + | |
| 3851 | + | |
| 3852 | + | |
| 3853 | + | |
| 3854 | + | |
| 3855 | + | |
| 3856 | + | |
| 3857 | + | |
| 3858 | + | |
| 3859 | + | |
| 3860 | + | |
| 3861 | + | |
| 3862 | + | |
| 3863 | + | |
| 3864 | + | |
| 3865 | + | |
| 3866 | + | |
| 3867 | + | |
| 3868 | + | |
| 3869 | + | |
| 3870 | + | |
| 3871 | + | |
| 3872 | + | |
| 3873 | + | |
| 3874 | + | |
| 3875 | + | |
| 3876 | + | |
| 3877 | + | |
| 3878 | + | |
| 3879 | + | |
| 3880 | + | |
| 3881 | + | |
3844 | 3882 |
| |
3845 | 3883 |
| |
3846 | 3884 |
| |
|
Lines changed: 82 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
117 | 117 |
| |
118 | 118 |
| |
119 | 119 |
| |
| 120 | + | |
120 | 121 |
| |
121 | 122 |
| |
122 | 123 |
| |
| |||
453 | 454 |
| |
454 | 455 |
| |
455 | 456 |
| |
456 |
| - | |
457 |
| - | |
458 | 457 |
| |
459 | 458 |
| |
460 | 459 |
| |
| |||
486 | 485 |
| |
487 | 486 |
| |
488 | 487 |
| |
489 |
| - | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
490 | 523 |
| |
491 | 524 |
| |
492 | 525 |
| |
| |||
932 | 965 |
| |
933 | 966 |
| |
934 | 967 |
| |
935 |
| - | |
| 968 | + | |
| 969 | + | |
936 | 970 |
| |
937 | 971 |
| |
938 | 972 |
| |
| |||
1009 | 1043 |
| |
1010 | 1044 |
| |
1011 | 1045 |
| |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
| 1056 | + | |
| 1057 | + | |
| 1058 | + | |
| 1059 | + | |
| 1060 | + | |
| 1061 | + | |
| 1062 | + | |
| 1063 | + | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
| 1082 | + | |
| 1083 | + | |
| 1084 | + | |
| 1085 | + | |
| 1086 | + | |
| 1087 | + | |
| 1088 | + | |
| 1089 | + | |
1012 | 1090 |
| |
1013 | 1091 |
| |
1014 | 1092 |
| |
|
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
111 | 111 |
| |
112 | 112 |
| |
113 | 113 |
| |
| 114 | + | |
| 115 | + | |
114 | 116 |
| |
115 | 117 |
| |
116 | 118 |
| |
|
0 commit comments
Comments
(0)