forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit8bed238
committed
Try to make silent_mode behave somewhat reasonably.
Instead of sending stdout/stderr to /dev/null after forking away from theterminal, send them to postmaster.log within the data directory. Sincethis opens the door to indefinite logfile bloat, recommend even morestrongly that log output be redirected when using silent_mode.Move the postmaster's initial calls of load_hba() and load_ident() downto after we have started the log collector, if we are going to. Thisis so that errors reported by them will appear in the "usual" place.Reclassify silent_mode as a LOGGING_WHERE, not LOGGING_WHEN, parameter,since it's got absolutely nothing to do with the latter category.In passing, fix some obsolete references to -S ... this option hasn'thad that switch letter for a long time.Back-patch to 8.4, since as of 8.4 load_hba() and load_ident() are morepicky (and thus more likely to fail) than they used to be. This entirechange was driven by a complaint about those errors disappearing intothe bit bucket.1 parent5a4f763 commit8bed238
File tree
4 files changed
+111
-56
lines changed- doc/src/sgml
- src/backend
- postmaster
- utils/misc
4 files changed
+111
-56
lines changedLines changed: 32 additions & 22 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 |
| - | |
| 1 | + | |
2 | 2 |
| |
3 | 3 |
| |
4 | 4 |
| |
| |||
2588 | 2588 |
| |
2589 | 2589 |
| |
2590 | 2590 |
| |
2591 |
| - | |
| 2591 | + | |
| 2592 | + | |
| 2593 | + | |
| 2594 | + | |
| 2595 | + | |
| 2596 | + | |
| 2597 | + | |
| 2598 | + | |
| 2599 | + | |
| 2600 | + | |
| 2601 | + | |
| 2602 | + | |
| 2603 | + | |
| 2604 | + | |
| 2605 | + | |
| 2606 | + | |
| 2607 | + | |
| 2608 | + | |
| 2609 | + | |
| 2610 | + | |
| 2611 | + | |
| 2612 | + | |
| 2613 | + | |
| 2614 | + | |
| 2615 | + | |
| 2616 | + | |
| 2617 | + | |
| 2618 | + | |
| 2619 | + | |
| 2620 | + | |
| 2621 | + | |
2592 | 2622 |
| |
2593 | 2623 |
| |
2594 | 2624 |
| |
| |||
2722 | 2752 |
| |
2723 | 2753 |
| |
2724 | 2754 |
| |
2725 |
| - | |
2726 |
| - | |
2727 |
| - | |
2728 |
| - | |
2729 |
| - | |
2730 |
| - | |
2731 |
| - | |
2732 |
| - | |
2733 |
| - | |
2734 |
| - | |
2735 |
| - | |
2736 |
| - | |
2737 |
| - | |
2738 |
| - | |
2739 |
| - | |
2740 |
| - | |
2741 |
| - | |
2742 |
| - | |
2743 |
| - | |
2744 |
| - | |
2745 | 2755 |
| |
2746 | 2756 |
| |
2747 | 2757 |
| |
|
Lines changed: 72 additions & 29 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
37 | 37 |
| |
38 | 38 |
| |
39 | 39 |
| |
40 |
| - | |
| 40 | + | |
41 | 41 |
| |
42 | 42 |
| |
43 | 43 |
| |
| |||
191 | 191 |
| |
192 | 192 |
| |
193 | 193 |
| |
194 |
| - | |
| 194 | + | |
195 | 195 |
| |
196 | 196 |
| |
197 | 197 |
| |
| |||
744 | 744 |
| |
745 | 745 |
| |
746 | 746 |
| |
747 |
| - | |
| 747 | + | |
748 | 748 |
| |
749 | 749 |
| |
750 | 750 |
| |
| |||
894 | 894 |
| |
895 | 895 |
| |
896 | 896 |
| |
897 |
| - | |
898 |
| - | |
899 |
| - | |
900 |
| - | |
901 |
| - | |
902 |
| - | |
903 |
| - | |
904 |
| - | |
905 |
| - | |
906 |
| - | |
907 |
| - | |
908 |
| - | |
909 |
| - | |
910 |
| - | |
911 | 897 |
| |
912 | 898 |
| |
913 | 899 |
| |
| |||
1023 | 1009 |
| |
1024 | 1010 |
| |
1025 | 1011 |
| |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
1026 | 1026 |
| |
1027 | 1027 |
| |
1028 | 1028 |
| |
| |||
1204 | 1204 |
| |
1205 | 1205 |
| |
1206 | 1206 |
| |
1207 |
| - | |
| 1207 | + | |
| 1208 | + | |
| 1209 | + | |
| 1210 | + | |
| 1211 | + | |
1208 | 1212 |
| |
1209 | 1213 |
| |
1210 | 1214 |
| |
1211 | 1215 |
| |
1212 | 1216 |
| |
1213 |
| - | |
| 1217 | + | |
| 1218 | + | |
| 1219 | + | |
1214 | 1220 |
| |
| 1221 | + | |
| 1222 | + | |
| 1223 | + | |
| 1224 | + | |
| 1225 | + | |
| 1226 | + | |
| 1227 | + | |
| 1228 | + | |
| 1229 | + | |
| 1230 | + | |
| 1231 | + | |
| 1232 | + | |
| 1233 | + | |
| 1234 | + | |
| 1235 | + | |
| 1236 | + | |
| 1237 | + | |
| 1238 | + | |
| 1239 | + | |
| 1240 | + | |
| 1241 | + | |
| 1242 | + | |
1215 | 1243 |
| |
| 1244 | + | |
| 1245 | + | |
| 1246 | + | |
1216 | 1247 |
| |
1217 | 1248 |
| |
1218 | 1249 |
| |
| |||
1231 | 1262 |
| |
1232 | 1263 |
| |
1233 | 1264 |
| |
1234 |
| - | |
1235 |
| - | |
| 1265 | + | |
| 1266 | + | |
1236 | 1267 |
| |
1237 | 1268 |
| |
1238 | 1269 |
| |
| |||
1242 | 1273 |
| |
1243 | 1274 |
| |
1244 | 1275 |
| |
1245 |
| - | |
1246 |
| - | |
1247 |
| - | |
1248 |
| - | |
1249 |
| - | |
| 1276 | + | |
| 1277 | + | |
| 1278 | + | |
| 1279 | + | |
| 1280 | + | |
| 1281 | + | |
| 1282 | + | |
| 1283 | + | |
| 1284 | + | |
| 1285 | + | |
| 1286 | + | |
| 1287 | + | |
| 1288 | + | |
| 1289 | + | |
| 1290 | + | |
| 1291 | + | |
| 1292 | + | |
1250 | 1293 |
| |
1251 | 1294 |
| |
1252 |
| - | |
| 1295 | + | |
1253 | 1296 |
| |
1254 | 1297 |
| |
1255 | 1298 |
| |
| |||
3241 | 3284 |
| |
3242 | 3285 |
| |
3243 | 3286 |
| |
3244 |
| - | |
3245 |
| - | |
| 3287 | + | |
| 3288 | + | |
3246 | 3289 |
| |
3247 | 3290 |
| |
3248 | 3291 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
13 |
| - | |
| 13 | + | |
14 | 14 |
| |
15 | 15 |
| |
16 | 16 |
| |
| |||
734 | 734 |
| |
735 | 735 |
| |
736 | 736 |
| |
737 |
| - | |
| 737 | + | |
738 | 738 |
| |
739 | 739 |
| |
740 | 740 |
| |
|
Lines changed: 5 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
265 | 265 |
| |
266 | 266 |
| |
267 | 267 |
| |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
268 | 273 |
| |
269 | 274 |
| |
270 | 275 |
| |
| |||
314 | 319 |
| |
315 | 320 |
| |
316 | 321 |
| |
317 |
| - | |
318 |
| - | |
319 |
| - | |
320 | 322 |
| |
321 | 323 |
| |
322 | 324 |
| |
|
0 commit comments
Comments
(0)