forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit2e49461
committed
On Darwin, detect and report a multithreaded postmaster.
Darwin --enable-nls builds use a substitute setlocale() that may start athread. Buildfarm member orangutan experienced BackendList corruptionon account of different postmaster threads executing signal handlerssimultaneously. Furthermore, a multithreaded postmaster risks undefinedbehavior from sigprocmask() and fork(). Emit LOG messages about theproblem and its workaround. Back-patch to 9.0 (all supported versions).1 parent3580397 commit2e49461
File tree
5 files changed
+61
-2
lines changed- src
- backend/postmaster
- include
- port
5 files changed
+61
-2
lines changedLines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
18839 | 18839 |
| |
18840 | 18840 |
| |
18841 | 18841 |
| |
18842 |
| - | |
| 18842 | + | |
| 18843 | + | |
18843 | 18844 |
| |
18844 | 18845 |
| |
18845 | 18846 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1210 | 1210 |
| |
1211 | 1211 |
| |
1212 | 1212 |
| |
1213 |
| - | |
| 1213 | + | |
1214 | 1214 |
| |
1215 | 1215 |
| |
1216 | 1216 |
| |
|
Lines changed: 43 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
92 | 92 |
| |
93 | 93 |
| |
94 | 94 |
| |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
95 | 99 |
| |
96 | 100 |
| |
97 | 101 |
| |
| |||
1081 | 1085 |
| |
1082 | 1086 |
| |
1083 | 1087 |
| |
| 1088 | + | |
| 1089 | + | |
| 1090 | + | |
| 1091 | + | |
| 1092 | + | |
| 1093 | + | |
| 1094 | + | |
| 1095 | + | |
| 1096 | + | |
| 1097 | + | |
| 1098 | + | |
| 1099 | + | |
| 1100 | + | |
| 1101 | + | |
| 1102 | + | |
| 1103 | + | |
| 1104 | + | |
| 1105 | + | |
1084 | 1106 |
| |
1085 | 1107 |
| |
1086 | 1108 |
| |
| |||
1506 | 1528 |
| |
1507 | 1529 |
| |
1508 | 1530 |
| |
| 1531 | + | |
| 1532 | + | |
| 1533 | + | |
| 1534 | + | |
| 1535 | + | |
| 1536 | + | |
| 1537 | + | |
| 1538 | + | |
| 1539 | + | |
1509 | 1540 |
| |
1510 | 1541 |
| |
1511 | 1542 |
| |
| |||
4155 | 4186 |
| |
4156 | 4187 |
| |
4157 | 4188 |
| |
| 4189 | + | |
| 4190 | + | |
| 4191 | + | |
| 4192 | + | |
| 4193 | + | |
| 4194 | + | |
| 4195 | + | |
| 4196 | + | |
| 4197 | + | |
| 4198 | + | |
| 4199 | + | |
| 4200 | + | |
4158 | 4201 |
| |
4159 | 4202 |
| |
4160 | 4203 |
| |
|
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
387 | 387 |
| |
388 | 388 |
| |
389 | 389 |
| |
| 390 | + | |
| 391 | + | |
| 392 | + | |
390 | 393 |
| |
391 | 394 |
| |
392 | 395 |
| |
|
Lines changed: 12 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
570 | 570 |
| |
571 | 571 |
| |
572 | 572 |
| |
| 573 | + | |
573 | 574 |
| |
574 | 575 |
| |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
575 | 587 |
| |
576 | 588 |
| |
577 | 589 |
| |
|
0 commit comments
Comments
(0)