- Notifications
You must be signed in to change notification settings - Fork5
Commit45f9b46
committed
Avoid calling kill() in a postmaster signal handler.
This causes problems when the system load is high, per report from ZdenekKotala in <1250860954.1239.114.camel@localhost>; instead of calling killdirectly, have the signal handler set a flag which is checked in ServerLoop.This way, the handler can return before being called again by a subsequentsignal sent from the autovacuum launcher. Also, increase the sleep in thelauncher in this failure path to 1 second.Backpatch to 8.3, which is when the signalling between autovacuumlauncher/postmaster was introduced.Also, add a couple of ReleasePostmasterChildSlot calls in error paths; thispart backpatched to 8.4 which is when the child slot stuff was introduced.1 parent9b708f1 commit45f9b46
2 files changed
+21
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| |||
653 | 653 | | |
654 | 654 | | |
655 | 655 | | |
656 | | - | |
| 656 | + | |
657 | 657 | | |
658 | 658 | | |
659 | 659 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
290 | 290 | | |
291 | 291 | | |
292 | 292 | | |
| 293 | + | |
| 294 | + | |
293 | 295 | | |
294 | 296 | | |
295 | 297 | | |
| |||
1391 | 1393 | | |
1392 | 1394 | | |
1393 | 1395 | | |
| 1396 | + | |
| 1397 | + | |
| 1398 | + | |
| 1399 | + | |
| 1400 | + | |
| 1401 | + | |
| 1402 | + | |
| 1403 | + | |
1394 | 1404 | | |
1395 | 1405 | | |
1396 | 1406 | | |
| |||
3014 | 3024 | | |
3015 | 3025 | | |
3016 | 3026 | | |
| 3027 | + | |
3017 | 3028 | | |
3018 | 3029 | | |
3019 | 3030 | | |
| |||
4343 | 4354 | | |
4344 | 4355 | | |
4345 | 4356 | | |
| 4357 | + | |
4346 | 4358 | | |
4347 | 4359 | | |
4348 | 4360 | | |
| |||
4354 | 4366 | | |
4355 | 4367 | | |
4356 | 4368 | | |
4357 | | - | |
| 4369 | + | |
| 4370 | + | |
| 4371 | + | |
| 4372 | + | |
| 4373 | + | |
4358 | 4374 | | |
4359 | 4375 | | |
4360 | 4376 | | |
4361 | 4377 | | |
4362 | | - | |
| 4378 | + | |
4363 | 4379 | | |
4364 | 4380 | | |
4365 | 4381 | | |
| |||
0 commit comments
Comments
(0)