forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit6e1dd27
committed
Unify SIGHUP handling between normal and walsender backends.
Because walsender and normal backends share the same main loop it'sproblematic to have two different flag variables, set in signalhandlers, indicating a pending configuration reload. Only certainwalsender commands reach code paths checking for thevariable (START_[LOGICAL_]REPLICATION, CREATE_REPLICATION_SLOT... LOGICAL, notably not base backups).This is a bug present since the introduction of walsender, but hasgotten worse in releases since then which allow walsender to do more.A later patch, not slated for v10, will similarly unify SIGHUPhandling in other types of processes as well.Author: Petr Jelinek, Andres FreundReviewed-By: Michael PaquierDiscussion:https://postgr.es/m/20170423235941.qosiuoyqprq4nu7v@alap3.anarazel.deBackpatch: 9.2-, bug is present since 9.01 parentc6c3334 commit6e1dd27
File tree
4 files changed
+27
-38
lines changed- src
- backend
- replication
- tcop
- utils/init
- include
4 files changed
+27
-38
lines changedLines changed: 7 additions & 22 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
182 | 182 |
| |
183 | 183 |
| |
184 | 184 |
| |
185 |
| - | |
186 | 185 |
| |
187 | 186 |
| |
188 | 187 |
| |
| |||
218 | 217 |
| |
219 | 218 |
| |
220 | 219 |
| |
221 |
| - | |
222 | 220 |
| |
223 | 221 |
| |
224 | 222 |
| |
| |||
1201 | 1199 |
| |
1202 | 1200 |
| |
1203 | 1201 |
| |
1204 |
| - | |
| 1202 | + | |
1205 | 1203 |
| |
1206 |
| - | |
| 1204 | + | |
1207 | 1205 |
| |
1208 | 1206 |
| |
1209 | 1207 |
| |
| |||
1309 | 1307 |
| |
1310 | 1308 |
| |
1311 | 1309 |
| |
1312 |
| - | |
| 1310 | + | |
1313 | 1311 |
| |
1314 |
| - | |
| 1312 | + | |
1315 | 1313 |
| |
1316 | 1314 |
| |
1317 | 1315 |
| |
| |||
2101 | 2099 |
| |
2102 | 2100 |
| |
2103 | 2101 |
| |
2104 |
| - | |
| 2102 | + | |
2105 | 2103 |
| |
2106 |
| - | |
| 2104 | + | |
2107 | 2105 |
| |
2108 | 2106 |
| |
2109 | 2107 |
| |
| |||
2908 | 2906 |
| |
2909 | 2907 |
| |
2910 | 2908 |
| |
2911 |
| - | |
2912 |
| - | |
2913 |
| - | |
2914 |
| - | |
2915 |
| - | |
2916 |
| - | |
2917 |
| - | |
2918 |
| - | |
2919 |
| - | |
2920 |
| - | |
2921 |
| - | |
2922 |
| - | |
2923 |
| - | |
2924 | 2909 |
| |
2925 | 2910 |
| |
2926 | 2911 |
| |
| |||
2942 | 2927 |
| |
2943 | 2928 |
| |
2944 | 2929 |
| |
2945 |
| - | |
| 2930 | + | |
2946 | 2931 |
| |
2947 | 2932 |
| |
2948 | 2933 |
| |
|
Lines changed: 14 additions & 16 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
122 | 122 |
| |
123 | 123 |
| |
124 | 124 |
| |
125 |
| - | |
126 |
| - | |
127 |
| - | |
128 |
| - | |
129 |
| - | |
130 |
| - | |
131 |
| - | |
132 | 125 |
| |
133 | 126 |
| |
134 | 127 |
| |
| |||
187 | 180 |
| |
188 | 181 |
| |
189 | 182 |
| |
190 |
| - | |
191 | 183 |
| |
192 | 184 |
| |
193 | 185 |
| |
| |||
2684 | 2676 |
| |
2685 | 2677 |
| |
2686 | 2678 |
| |
2687 |
| - | |
2688 |
| - | |
2689 |
| - | |
| 2679 | + | |
| 2680 | + | |
| 2681 | + | |
| 2682 | + | |
| 2683 | + | |
| 2684 | + | |
| 2685 | + | |
| 2686 | + | |
| 2687 | + | |
2690 | 2688 |
| |
2691 | 2689 |
| |
2692 | 2690 |
| |
2693 |
| - | |
| 2691 | + | |
2694 | 2692 |
| |
2695 | 2693 |
| |
2696 | 2694 |
| |
| |||
3632 | 3630 |
| |
3633 | 3631 |
| |
3634 | 3632 |
| |
3635 |
| - | |
3636 |
| - | |
| 3633 | + | |
| 3634 | + | |
3637 | 3635 |
| |
3638 | 3636 |
| |
3639 | 3637 |
| |
| |||
4046 | 4044 |
| |
4047 | 4045 |
| |
4048 | 4046 |
| |
4049 |
| - | |
| 4047 | + | |
4050 | 4048 |
| |
4051 |
| - | |
| 4049 | + | |
4052 | 4050 |
| |
4053 | 4051 |
| |
4054 | 4052 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
31 | 31 |
| |
32 | 32 |
| |
33 | 33 |
| |
| 34 | + | |
34 | 35 |
| |
35 | 36 |
| |
36 | 37 |
| |
|
Lines changed: 5 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
23 | 23 |
| |
24 | 24 |
| |
25 | 25 |
| |
| 26 | + | |
| 27 | + | |
26 | 28 |
| |
27 | 29 |
| |
28 | 30 |
| |
| |||
81 | 83 |
| |
82 | 84 |
| |
83 | 85 |
| |
| 86 | + | |
84 | 87 |
| |
85 | 88 |
| |
86 | 89 |
| |
| |||
273 | 276 |
| |
274 | 277 |
| |
275 | 278 |
| |
| 279 | + | |
| 280 | + | |
276 | 281 |
| |
277 | 282 |
| |
278 | 283 |
| |
|
0 commit comments
Comments
(0)