forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit8b60db7
committed
Handle SIGTERM in pg_receivewal and pg_recvlogical
In pg_receivewal, compressed output is only flushed on clean exits. Thereason to support SIGTERM as well as SIGINT (which is currently handled)is that pg_receivewal might well be running as a daemon, and systemd'sdefault KillSignal is SIGTERM.Since pg_recvlogical is also supposed to run as a daemon, teach it aboutSIGTERM as well and update the documentation to match. While in there,change pg_receivewal's time_to_stop to be sig_atomic_t like it is inpg_recvlogical.Author: Christoph Berg <myon@debian.org>Reviewed-by: Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>Reviewed-by: Michael Paquier <michael@paquier.xyz>Discussion:https://postgr.es/m/Yvo/5No5S0c4EFMj@msg.df7cb.de1 parent0e73327 commit8b60db7
File tree
4 files changed
+34
-12
lines changed- doc/src/sgml/ref
- src/bin/pg_basebackup
4 files changed
+34
-12
lines changedLines changed: 5 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
118 | 118 |
| |
119 | 119 |
| |
120 | 120 |
| |
121 |
| - | |
122 |
| - | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
123 | 124 |
| |
124 | 125 |
| |
125 | 126 |
| |
| |||
457 | 458 |
| |
458 | 459 |
| |
459 | 460 |
| |
460 |
| - | |
| 461 | + | |
| 462 | + | |
461 | 463 |
| |
462 | 464 |
| |
463 | 465 |
| |
|
Lines changed: 18 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
46 | 46 |
| |
47 | 47 |
| |
48 | 48 |
| |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
49 | 56 |
| |
50 | 57 |
| |
51 | 58 |
| |
| |||
407 | 414 |
| |
408 | 415 |
| |
409 | 416 |
| |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
410 | 428 |
| |
411 | 429 |
| |
412 | 430 |
| |
|
Lines changed: 6 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
45 | 45 |
| |
46 | 46 |
| |
47 | 47 |
| |
48 |
| - | |
| 48 | + | |
49 | 49 |
| |
50 | 50 |
| |
51 | 51 |
| |
| |||
673 | 673 |
| |
674 | 674 |
| |
675 | 675 |
| |
676 |
| - | |
677 |
| - | |
| 676 | + | |
| 677 | + | |
678 | 678 |
| |
679 | 679 |
| |
680 | 680 |
| |
681 | 681 |
| |
682 |
| - | |
| 682 | + | |
683 | 683 |
| |
684 | 684 |
| |
685 | 685 |
| |
| |||
905 | 905 |
| |
906 | 906 |
| |
907 | 907 |
| |
908 |
| - | |
| 908 | + | |
| 909 | + | |
909 | 910 |
| |
910 | 911 |
| |
911 | 912 |
| |
|
Lines changed: 5 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
650 | 650 |
| |
651 | 651 |
| |
652 | 652 |
| |
653 |
| - | |
654 |
| - | |
| 653 | + | |
| 654 | + | |
655 | 655 |
| |
656 | 656 |
| |
657 |
| - | |
| 657 | + | |
658 | 658 |
| |
659 | 659 |
| |
660 | 660 |
| |
| |||
922 | 922 |
| |
923 | 923 |
| |
924 | 924 |
| |
925 |
| - | |
| 925 | + | |
| 926 | + | |
926 | 927 |
| |
927 | 928 |
| |
928 | 929 |
| |
|
0 commit comments
Comments
(0)