Commit 109d50d
committed
Under new theory of operation wherein postmaster forks children
immediately, we will fork a child even if the database state does not
permit connections to be accepted (eg, we are in recovery mode).
The child process will correctly reject the connection and exit as
soon as it's finished collecting the connection request message.
However, this means that reaper() must be prepared to see child
process exit signals even while it's waiting for startup or shutdown
process to finish. As was, a connection request arriving during a
database recovery or shutdown would cause postmaster abort.1 parent 10e9cd2 commit 109d50d
1 file changed
+15
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
1357 | 1357 | | |
1358 | 1358 | | |
1359 | 1359 | | |
| 1360 | + | |
| 1361 | + | |
| 1362 | + | |
1360 | 1363 | | |
| 1364 | + | |
1361 | 1365 | | |
1362 | 1366 | | |
1363 | 1367 | | |
| |||
1409 | 1413 | | |
1410 | 1414 | | |
1411 | 1415 | | |
| 1416 | + | |
| 1417 | + | |
| 1418 | + | |
1412 | 1419 | | |
| 1420 | + | |
1413 | 1421 | | |
1414 | 1422 | | |
1415 | 1423 | | |
| |||
1481 | 1489 | | |
1482 | 1490 | | |
1483 | 1491 | | |
1484 | | - | |
| 1492 | + | |
1485 | 1493 | | |
1486 | | - | |
1487 | | - | |
1488 | 1494 | | |
1489 | 1495 | | |
1490 | 1496 | | |
1491 | | - | |
1492 | 1497 | | |
1493 | 1498 | | |
1494 | 1499 | | |
1495 | 1500 | | |
1496 | | - | |
| 1501 | + | |
1497 | 1502 | | |
1498 | | - | |
1499 | | - | |
1500 | 1503 | | |
1501 | 1504 | | |
1502 | 1505 | | |
1503 | 1506 | | |
1504 | | - | |
1505 | 1507 | | |
1506 | 1508 | | |
1507 | 1509 | | |
1508 | 1510 | | |
1509 | 1511 | | |
1510 | 1512 | | |
1511 | 1513 | | |
| 1514 | + | |
| 1515 | + | |
| 1516 | + | |
1512 | 1517 | | |
| 1518 | + | |
1513 | 1519 | | |
1514 | 1520 | | |
1515 | 1521 | | |
| |||
1533 | 1539 | | |
1534 | 1540 | | |
1535 | 1541 | | |
1536 | | - | |
1537 | 1542 | | |
1538 | 1543 | | |
1539 | 1544 | | |
| |||
0 commit comments