forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit51b5834
committed
Provide options for postmaster to kill child processes with SIGABRT.
The postmaster normally sends SIGQUIT to force-terminate itschild processes after a child crash or immediate-stop request.If that doesn't result in child exit within a few seconds,we follow it up with SIGKILL. This patch provides GUC flagsthat allow either of these signals to be replaced with SIGABRT.On typically-configured Unix systems, that will result in acore dump being produced for each such child. This can beuseful for debugging problems, although it's not something you'dwant to have on in production due to the risk of disk spacebloat from lots of core files.The old postmaster -T switch, which sent SIGSTOP in place ofSIGQUIT, is changed to be the same as send_abort_for_crash.As far as I can tell from the code comments, the intent ofthat switch was just to block things for long enough to forcecore dumps manually, which seems like an unnecessary extra step.(Maybe at the time, there was no way to get most kernels toproduce core files with per-PID names, requiring manual corefile renaming after each one. But now it's surely the hard way.)I also took the opportunity to remove the old postmaster -n(skip shmem reinit) switch, which hasn't actually done anythingin decades, though the documentation still claimed it did.Discussion:https://postgr.es/m/2251016.1668797294@sss.pgh.pa.us1 parente2933a6 commit51b5834
File tree
6 files changed
+134
-129
lines changed- doc/src/sgml
- ref
- src
- backend
- main
- postmaster
- utils/misc
- include/postmaster
6 files changed
+134
-129
lines changedLines changed: 56 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
11500 | 11500 |
| |
11501 | 11501 |
| |
11502 | 11502 |
| |
| 11503 | + | |
| 11504 | + | |
| 11505 | + | |
| 11506 | + | |
| 11507 | + | |
| 11508 | + | |
| 11509 | + | |
| 11510 | + | |
| 11511 | + | |
| 11512 | + | |
| 11513 | + | |
| 11514 | + | |
| 11515 | + | |
| 11516 | + | |
| 11517 | + | |
| 11518 | + | |
| 11519 | + | |
| 11520 | + | |
| 11521 | + | |
| 11522 | + | |
| 11523 | + | |
| 11524 | + | |
| 11525 | + | |
| 11526 | + | |
| 11527 | + | |
| 11528 | + | |
| 11529 | + | |
| 11530 | + | |
| 11531 | + | |
| 11532 | + | |
| 11533 | + | |
| 11534 | + | |
| 11535 | + | |
| 11536 | + | |
| 11537 | + | |
| 11538 | + | |
| 11539 | + | |
| 11540 | + | |
| 11541 | + | |
| 11542 | + | |
| 11543 | + | |
| 11544 | + | |
| 11545 | + | |
| 11546 | + | |
| 11547 | + | |
| 11548 | + | |
| 11549 | + | |
| 11550 | + | |
| 11551 | + | |
| 11552 | + | |
| 11553 | + | |
| 11554 | + | |
| 11555 | + | |
| 11556 | + | |
| 11557 | + | |
| 11558 | + | |
11503 | 11559 |
| |
11504 | 11560 |
| |
11505 | 11561 |
| |
|
Lines changed: 3 additions & 26 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
409 | 409 |
| |
410 | 410 |
| |
411 | 411 |
| |
412 |
| - | |
413 |
| - | |
414 |
| - | |
415 |
| - | |
416 |
| - | |
417 |
| - | |
418 |
| - | |
419 |
| - | |
420 |
| - | |
421 |
| - | |
422 |
| - | |
423 |
| - | |
424 |
| - | |
425 |
| - | |
426 |
| - | |
427 |
| - | |
428 |
| - | |
429 |
| - | |
430 | 412 |
| |
431 | 413 |
| |
432 | 414 |
| |
| |||
466 | 448 |
| |
467 | 449 |
| |
468 | 450 |
| |
469 |
| - | |
470 |
| - | |
471 |
| - | |
472 |
| - | |
473 |
| - | |
474 |
| - | |
475 |
| - | |
476 |
| - | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
477 | 454 |
| |
478 | 455 |
| |
479 | 456 |
| |
|
Lines changed: 1 addition & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
352 | 352 |
| |
353 | 353 |
| |
354 | 354 |
| |
355 |
| - | |
356 | 355 |
| |
357 | 356 |
| |
358 | 357 |
| |
359 |
| - | |
| 358 | + | |
360 | 359 |
| |
361 | 360 |
| |
362 | 361 |
| |
|
0 commit comments
Comments
(0)