forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit71a8251
committed
Make vacuum failsafe_active globally visible
While vacuuming a table in failsafe mode, VacuumCostActive shouldnot be re-enabled. This currently isn't a problem because vacuumcost parameters are only refreshed in between vacuuming tables andfailsafe status is reset for every table.In preparation for allowing vacuum cost parameters to be updatedmore frequently, elevate LVRelState->failsafe_active to a global,VacuumFailsafeActive, which will be checked when determining whetheror 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 parent5499706 commit71a8251
File tree
3 files changed
+23
-9
lines changed- src
- backend
- access/heap
- commands
- include/commands
3 files changed
+23
-9
lines changedLines changed: 7 additions & 9 deletions
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 |
| |
|
Lines changed: 15 additions & 0 deletions
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 |
| |
|
Lines changed: 1 addition & 0 deletions
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
Comments
(0)