forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitaea5d29
committed
Notify bgworker registrant after freeing worker slot.
Tom Lane observed buildfarm failures caused by the select_parallelregression test trying to launch new parallel queries before theworker slots used by the previous ones were freed. Try to fix this byhaving the postmaster free the worker slots before it sends theSIGUSR1 notifications to the registering process. This doesn'tcompletely eliminate the possibility that the user backend might(correctly) observe the worker as dead before the slot is free, but Ibelieve it should make the window significantly narrower.Patch by me, per complaint from Tom Lane. Reviewed by Amit Kapila.Discussion:http://postgr.es/m/30673.1487310734@sss.pgh.pa.us1 parent5a73e17 commitaea5d29
File tree
3 files changed
+37
-3
lines changed- src
- backend/postmaster
- include/postmaster
3 files changed
+37
-3
lines changedLines changed: 33 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
429 | 429 |
| |
430 | 430 |
| |
431 | 431 |
| |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
432 | 465 |
| |
433 | 466 |
| |
434 | 467 |
| |
|
Lines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3050 | 3050 |
| |
3051 | 3051 |
| |
3052 | 3052 |
| |
3053 |
| - | |
| 3053 | + | |
3054 | 3054 |
| |
3055 |
| - | |
| 3055 | + | |
3056 | 3056 |
| |
3057 | 3057 |
| |
3058 | 3058 |
| |
| |||
3126 | 3126 |
| |
3127 | 3127 |
| |
3128 | 3128 |
| |
3129 |
| - | |
| 3129 | + | |
3130 | 3130 |
| |
3131 | 3131 |
| |
3132 | 3132 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
42 | 42 |
| |
43 | 43 |
| |
44 | 44 |
| |
| 45 | + | |
45 | 46 |
| |
46 | 47 |
| |
47 | 48 |
| |
|
0 commit comments
Comments
(0)