forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit463a2eb
committed
postmaster: Commonalize FatalError paths
This includes some behavioral changes:- Previously PM_WAIT_XLOG_ARCHIVAL wasn't handled in HandleFatalError(), that doesn't seem quite right.- Previously a fatal error in PM_WAIT_XLOG_SHUTDOWN lead to jumping back to PM_WAIT_BACKENDS, no we go to PM_WAIT_DEAD_END. Jumping backwards doesn't seem quite right and we didn't do so when checkpointer failed to fork during a shutdown.- Previously a checkpointer fork failure didn't call SetQuitSignalReason(), which would lead to quickdie() reporting "terminating connection because of unexpected SIGQUIT signal" which seems even worse than the PMQUIT_FOR_CRASH message. If I saw that in the log I'd suspect somebody outside of postgres sent SIGQUITsReviewed-by: Bertrand Drouvot <bertranddrouvot.pg@gmail.com>Discussion:https://postgr.es/m/kgng5nrvnlv335evmsuvpnh354rw7qyazl73kdysev2cr2v5zu@m3cfzxicm5kp1 parent8edd8c7 commit463a2eb
1 file changed
+58
-16
lines changedLines changed: 58 additions & 16 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2706 | 2706 |
| |
2707 | 2707 |
| |
2708 | 2708 |
| |
2709 |
| - | |
2710 |
| - | |
2711 |
| - | |
2712 |
| - | |
2713 |
| - | |
2714 |
| - | |
2715 |
| - | |
| 2709 | + | |
| 2710 | + | |
| 2711 | + | |
| 2712 | + | |
| 2713 | + | |
| 2714 | + | |
| 2715 | + | |
| 2716 | + | |
| 2717 | + | |
| 2718 | + | |
| 2719 | + | |
| 2720 | + | |
| 2721 | + | |
| 2722 | + | |
| 2723 | + | |
| 2724 | + | |
| 2725 | + | |
| 2726 | + | |
| 2727 | + | |
| 2728 | + | |
| 2729 | + | |
| 2730 | + | |
| 2731 | + | |
| 2732 | + | |
| 2733 | + | |
| 2734 | + | |
| 2735 | + | |
| 2736 | + | |
| 2737 | + | |
| 2738 | + | |
| 2739 | + | |
| 2740 | + | |
| 2741 | + | |
| 2742 | + | |
| 2743 | + | |
| 2744 | + | |
| 2745 | + | |
| 2746 | + | |
| 2747 | + | |
| 2748 | + | |
| 2749 | + | |
| 2750 | + | |
| 2751 | + | |
| 2752 | + | |
2716 | 2753 |
| |
2717 | 2754 |
| |
2718 | 2755 |
| |
| |||
2942 | 2979 |
| |
2943 | 2980 |
| |
2944 | 2981 |
| |
| 2982 | + | |
| 2983 | + | |
| 2984 | + | |
2945 | 2985 |
| |
2946 | 2986 |
| |
2947 | 2987 |
| |
2948 | 2988 |
| |
2949 | 2989 |
| |
2950 | 2990 |
| |
2951 |
| - | |
2952 |
| - | |
2953 |
| - | |
| 2991 | + | |
| 2992 | + | |
| 2993 | + | |
2954 | 2994 |
| |
2955 | 2995 |
| |
2956 | 2996 |
| |
| |||
2981 | 3021 |
| |
2982 | 3022 |
| |
2983 | 3023 |
| |
| 3024 | + | |
| 3025 | + | |
| 3026 | + | |
| 3027 | + | |
| 3028 | + | |
| 3029 | + | |
| 3030 | + | |
2984 | 3031 |
| |
2985 |
| - | |
2986 |
| - | |
2987 |
| - | |
2988 |
| - | |
2989 |
| - | |
2990 |
| - | |
| 3032 | + | |
2991 | 3033 |
| |
2992 | 3034 |
| |
2993 | 3035 |
| |
|
0 commit comments
Comments
(0)