- Notifications
You must be signed in to change notification settings - Fork5
Commit801c2dc
committed
Separate multixact freezing parameters from xid's
Previously we were piggybacking on transaction ID parameters to freezemultixacts; but since there isn't necessarily any relationship betweenrates of Xid and multixact consumption, this turns out not to be a goodidea.Therefore, we now have multixact-specific freezing parameters:vacuum_multixact_freeze_min_age: when to remove multis as we come acrossthem in vacuum (default to 5 million, i.e. early in comparison to Xid'sdefault of 50 million)vacuum_multixact_freeze_table_age: when to force whole-table scansinstead of scanning only the pages marked as not all visible invisibility map (default to 150 million, same as for Xids). Whichever ofboth which reaches the 150 million mark earlier will cause a whole-tablescan.autovacuum_multixact_freeze_max_age: when for cause emergency,uninterruptible whole-table scans (default to 400 million, double asthat for Xids). This means there shouldn't be more frequent emergencyvacuuming than previously, unless multixacts are being used veryrapidly.Backpatch to 9.3 where multixacts were made to persist enough to requirefreezing. To avoid an ABI break in 9.3, VacuumStmt has a couple offields in an unnatural place, and StdRdOptions is split in two so thatthe newly added fields can go at the end.Patch by me, reviewed by Robert Haas, with additional input from AndresFreund and Tom Lane.1 parentde4b655 commit801c2dc
File tree
19 files changed
+379
-29
lines changed- doc/src/sgml
- ref
- src
- backend
- access
- common
- transam
- commands
- nodes
- parser
- postmaster
- utils/misc
- include
- commands
- nodes
- postmaster
- utils
19 files changed
+379
-29
lines changedLines changed: 69 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4892 | 4892 |
| |
4893 | 4893 |
| |
4894 | 4894 |
| |
| 4895 | + | |
| 4896 | + | |
| 4897 | + | |
| 4898 | + | |
| 4899 | + | |
| 4900 | + | |
| 4901 | + | |
| 4902 | + | |
| 4903 | + | |
| 4904 | + | |
| 4905 | + | |
| 4906 | + | |
| 4907 | + | |
| 4908 | + | |
| 4909 | + | |
| 4910 | + | |
| 4911 | + | |
| 4912 | + | |
| 4913 | + | |
| 4914 | + | |
| 4915 | + | |
| 4916 | + | |
| 4917 | + | |
| 4918 | + | |
| 4919 | + | |
| 4920 | + | |
| 4921 | + | |
4895 | 4922 |
| |
4896 | 4923 |
| |
4897 | 4924 |
| |
| |||
5300 | 5327 |
| |
5301 | 5328 |
| |
5302 | 5329 |
| |
5303 |
| - | |
| 5330 | + | |
5304 | 5331 |
| |
5305 | 5332 |
| |
5306 | 5333 |
| |
| |||
5331 | 5358 |
| |
5332 | 5359 |
| |
5333 | 5360 |
| |
| 5361 | + | |
| 5362 | + | |
| 5363 | + | |
| 5364 | + | |
| 5365 | + | |
| 5366 | + | |
| 5367 | + | |
| 5368 | + | |
| 5369 | + | |
| 5370 | + | |
| 5371 | + | |
| 5372 | + | |
| 5373 | + | |
| 5374 | + | |
| 5375 | + | |
| 5376 | + | |
| 5377 | + | |
| 5378 | + | |
| 5379 | + | |
| 5380 | + | |
| 5381 | + | |
| 5382 | + | |
| 5383 | + | |
| 5384 | + | |
| 5385 | + | |
| 5386 | + | |
| 5387 | + | |
| 5388 | + | |
| 5389 | + | |
| 5390 | + | |
| 5391 | + | |
| 5392 | + | |
| 5393 | + | |
| 5394 | + | |
| 5395 | + | |
| 5396 | + | |
| 5397 | + | |
| 5398 | + | |
| 5399 | + | |
| 5400 | + | |
| 5401 | + | |
5334 | 5402 |
| |
5335 | 5403 |
| |
5336 | 5404 |
| |
|
Lines changed: 55 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
108 | 108 |
| |
109 | 109 |
| |
110 | 110 |
| |
111 |
| - | |
| 111 | + | |
| 112 | + | |
112 | 113 |
| |
113 | 114 |
| |
114 | 115 |
| |
| |||
379 | 380 |
| |
380 | 381 |
| |
381 | 382 |
| |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
382 | 388 |
| |
383 | 389 |
| |
384 | 390 |
| |
| |||
597 | 603 |
| |
598 | 604 |
| |
599 | 605 |
| |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
600 | 654 |
| |
601 | 655 |
| |
602 | 656 |
| |
|
Lines changed: 38 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
985 | 985 |
| |
986 | 986 |
| |
987 | 987 |
| |
988 |
| - | |
| 988 | + | |
989 | 989 |
| |
990 | 990 |
| |
991 | 991 |
| |
| |||
1014 | 1014 |
| |
1015 | 1015 |
| |
1016 | 1016 |
| |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
| 1034 | + | |
| 1035 | + | |
| 1036 | + | |
| 1037 | + | |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
1017 | 1054 |
| |
1018 | 1055 |
| |
1019 | 1056 |
| |
|
Lines changed: 30 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
171 | 171 |
| |
172 | 172 |
| |
173 | 173 |
| |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
174 | 182 |
| |
175 | 183 |
| |
176 | 184 |
| |
| |||
179 | 187 |
| |
180 | 188 |
| |
181 | 189 |
| |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
182 | 198 |
| |
183 | 199 |
| |
184 | 200 |
| |
185 | 201 |
| |
186 | 202 |
| |
187 | 203 |
| |
188 | 204 |
| |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
189 | 213 |
| |
190 | 214 |
| |
191 | 215 |
| |
| |||
1166 | 1190 |
| |
1167 | 1191 |
| |
1168 | 1192 |
| |
| 1193 | + | |
| 1194 | + | |
| 1195 | + | |
| 1196 | + | |
| 1197 | + | |
| 1198 | + | |
1169 | 1199 |
| |
1170 | 1200 |
| |
1171 | 1201 |
| |
|
Lines changed: 12 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2055 | 2055 |
| |
2056 | 2056 |
| |
2057 | 2057 |
| |
2058 |
| - | |
2059 |
| - | |
2060 |
| - | |
2061 |
| - | |
2062 |
| - | |
| 2058 | + | |
| 2059 | + | |
| 2060 | + | |
| 2061 | + | |
| 2062 | + | |
| 2063 | + | |
| 2064 | + | |
2063 | 2065 |
| |
2064 | 2066 |
| |
2065 | 2067 |
| |
| |||
2093 | 2095 |
| |
2094 | 2096 |
| |
2095 | 2097 |
| |
2096 |
| - | |
| 2098 | + | |
2097 | 2099 |
| |
2098 |
| - | |
2099 |
| - | |
| 2100 | + | |
| 2101 | + | |
| 2102 | + | |
2100 | 2103 |
| |
2101 |
| - | |
| 2104 | + | |
2102 | 2105 |
| |
2103 | 2106 |
| |
2104 | 2107 |
| |
|
Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
313 | 313 |
| |
314 | 314 |
| |
315 | 315 |
| |
316 |
| - | |
| 316 | + | |
| 317 | + | |
317 | 318 |
| |
318 | 319 |
| |
319 | 320 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
850 | 850 |
| |
851 | 851 |
| |
852 | 852 |
| |
853 |
| - | |
| 853 | + | |
854 | 854 |
| |
855 | 855 |
| |
856 | 856 |
| |
|
0 commit comments
Comments
(0)