forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commita6708e2
committed
Fix syslogger's rotation disable/re-enable logic.
If it fails to open a new log file, the syslogger assumes there's somethingwrong with its parameters (such as log_directory), and stops attemptingautomatic time-based or size-based log file rotations. Sending it SIGHUPis supposed to start that up again. However, the original coding for thatwas really bogus, involving clobbering a couple of GUC variables and hopingthat SIGHUP processing would restore them. Get rid of that technique infavor of maintaining a separate flag showing we've turned rotation off.Per report from Mark Kirkwood.Also, the syslogger will automatically attempt to create the log_directorydirectory if it doesn't exist, but that was only happening at startup.For consistency and ease of use, it should do the same whenever the valueof log_directory is changed by SIGHUP.Back-patch to all supported branches.1 parentb0f24b5 commita6708e2
1 file changed
+20
-6
lines changedLines changed: 20 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
87 | 87 |
| |
88 | 88 |
| |
89 | 89 |
| |
| 90 | + | |
90 | 91 |
| |
91 | 92 |
| |
92 | 93 |
| |
| |||
315 | 316 |
| |
316 | 317 |
| |
317 | 318 |
| |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
318 | 324 |
| |
319 | 325 |
| |
320 | 326 |
| |
| |||
332 | 338 |
| |
333 | 339 |
| |
334 | 340 |
| |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
335 | 351 |
| |
336 | 352 |
| |
337 |
| - | |
| 353 | + | |
338 | 354 |
| |
339 | 355 |
| |
340 | 356 |
| |
| |||
343 | 359 |
| |
344 | 360 |
| |
345 | 361 |
| |
346 |
| - | |
| 362 | + | |
347 | 363 |
| |
348 | 364 |
| |
349 | 365 |
| |
| |||
1106 | 1122 |
| |
1107 | 1123 |
| |
1108 | 1124 |
| |
1109 |
| - | |
1110 |
| - | |
| 1125 | + | |
1111 | 1126 |
| |
1112 | 1127 |
| |
1113 | 1128 |
| |
| |||
1164 | 1179 |
| |
1165 | 1180 |
| |
1166 | 1181 |
| |
1167 |
| - | |
1168 |
| - | |
| 1182 | + | |
1169 | 1183 |
| |
1170 | 1184 |
| |
1171 | 1185 |
| |
|
0 commit comments
Comments
(0)