- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit7068538
committed
Use WaitLatch() instead of pg_usleep() at end-of-vacuum truncation
This has the advantage to make a process more responsive when thepostmaster dies, even if the wait time was rather limited as there wasonly a 50ms timeout here. Another advantage of this change is formonitoring, as we gain a new wait event for the end-of-vacuumtruncation.Author: Bharath RupireddyReviewed-by: Aleksander Alekseev, Thomas Munro, Michael PaquierDiscussion:https://postgr.es/m/CALj2ACU4AdPCq6NLfcA-ZGwX7pPCK5FgEj-CAU0xCKzkASSy_A@mail.gmail.com1 parenta2595e0 commit7068538
File tree
4 files changed
+15
-2
lines changed- doc/src/sgml
- src
- backend
- access/heap
- utils/activity
- include/utils
4 files changed
+15
-2
lines changedLines changed: 5 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2242 | 2242 |
| |
2243 | 2243 |
| |
2244 | 2244 |
| |
| 2245 | + | |
| 2246 | + | |
| 2247 | + | |
| 2248 | + | |
| 2249 | + | |
2245 | 2250 |
| |
2246 | 2251 |
| |
2247 | 2252 |
| |
|
Lines changed: 5 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3236 | 3236 |
| |
3237 | 3237 |
| |
3238 | 3238 |
| |
3239 |
| - | |
| 3239 | + | |
| 3240 | + | |
| 3241 | + | |
| 3242 | + | |
| 3243 | + | |
3240 | 3244 |
| |
3241 | 3245 |
| |
3242 | 3246 |
| |
|
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
485 | 485 |
| |
486 | 486 |
| |
487 | 487 |
| |
| 488 | + | |
| 489 | + | |
| 490 | + | |
488 | 491 |
| |
489 | 492 |
| |
490 | 493 |
| |
|
Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
140 | 140 |
| |
141 | 141 |
| |
142 | 142 |
| |
143 |
| - | |
| 143 | + | |
| 144 | + | |
144 | 145 |
| |
145 | 146 |
| |
146 | 147 |
| |
|
0 commit comments
Comments
(0)