Commit 71a8251
committed
Make vacuum failsafe_active globally visible
While vacuuming a table in failsafe mode, VacuumCostActive should
not be re-enabled. This currently isn't a problem because vacuum
cost parameters are only refreshed in between vacuuming tables and
failsafe status is reset for every table.
In preparation for allowing vacuum cost parameters to be updated
more frequently, elevate LVRelState->failsafe_active to a global,
VacuumFailsafeActive, which will be checked when determining whether
or not to re-enable vacuum cost-related delays.
Author: Melanie Plageman <melanieplageman@gmail.com>
Reviewed-by: Masahiko Sawada <sawada.mshk@gmail.com>
Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
Reviewed-by: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Reviewed-by: Robert Haas <robertmhaas@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/CAAKRu_ZngzqnEODc7LmS1NH04Kt6Y9huSjz5pp7%2BDXhrjDA0gw%40mail.gmail.com1 parent 5499706 commit 71a8251
File tree
3 files changed
+23
-9
lines changed- src
- backend
- access/heap
- commands
- include/commands
3 files changed
+23
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
156 | | - | |
157 | | - | |
158 | 156 | | |
159 | 157 | | |
160 | 158 | | |
| |||
391 | 389 | | |
392 | 390 | | |
393 | 391 | | |
394 | | - | |
| 392 | + | |
395 | 393 | | |
396 | 394 | | |
397 | 395 | | |
| |||
709 | 707 | | |
710 | 708 | | |
711 | 709 | | |
712 | | - | |
| 710 | + | |
713 | 711 | | |
714 | 712 | | |
715 | 713 | | |
| |||
2293 | 2291 | | |
2294 | 2292 | | |
2295 | 2293 | | |
2296 | | - | |
| 2294 | + | |
2297 | 2295 | | |
2298 | 2296 | | |
2299 | 2297 | | |
| |||
2374 | 2372 | | |
2375 | 2373 | | |
2376 | 2374 | | |
2377 | | - | |
| 2375 | + | |
2378 | 2376 | | |
2379 | 2377 | | |
2380 | 2378 | | |
| |||
2616 | 2614 | | |
2617 | 2615 | | |
2618 | 2616 | | |
2619 | | - | |
| 2617 | + | |
2620 | 2618 | | |
2621 | 2619 | | |
2622 | 2620 | | |
2623 | 2621 | | |
2624 | | - | |
| 2622 | + | |
2625 | 2623 | | |
2626 | 2624 | | |
2627 | 2625 | | |
| |||
2820 | 2818 | | |
2821 | 2819 | | |
2822 | 2820 | | |
2823 | | - | |
| 2821 | + | |
2824 | 2822 | | |
2825 | 2823 | | |
2826 | 2824 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
75 | 90 | | |
76 | 91 | | |
77 | 92 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
306 | 306 | | |
307 | 307 | | |
308 | 308 | | |
| 309 | + | |
309 | 310 | | |
310 | 311 | | |
311 | 312 | | |
| |||
0 commit comments