forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit368ffde
committed
Fix waiting in RegisterSyncRequest().
If we run out of space in the checkpointer sync request queue (which ishopefully rare on real systems, but common with very small buffer pool),we wait for it to drain. While waiting, we should report that as a waitevent so that users know what is going on, and also handle postmasterdeath, since otherwise the loop might never terminate if thecheckpointer has exited.Back-patch to 12. Although the problem exists in earlier releases too,the code is structured differently before 12 so I haven't gone anyfurther for now, in the absence of field complaints.Reported-by: Andres Freund <andres@anarazel.de>Reviewed-by: Andres Freund <andres@anarazel.de>Discussion:https://postgr.es/m/20220226213942.nb7uvb2pamyu26dj%40alap3.anarazel.de1 parentaf8a8eb commit368ffde
File tree
4 files changed
+14
-3
lines changed- doc/src/sgml
- src
- backend
- postmaster
- storage/sync
- include
4 files changed
+14
-3
lines changedLines changed: 6 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1483 | 1483 |
| |
1484 | 1484 |
| |
1485 | 1485 |
| |
1486 |
| - | |
| 1486 | + | |
1487 | 1487 |
| |
1488 | 1488 |
| |
1489 | 1489 |
| |
| |||
1495 | 1495 |
| |
1496 | 1496 |
| |
1497 | 1497 |
| |
| 1498 | + | |
| 1499 | + | |
| 1500 | + | |
| 1501 | + | |
| 1502 | + | |
1498 | 1503 |
| |
1499 | 1504 |
| |
1500 | 1505 |
| |
|
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3889 | 3889 |
| |
3890 | 3890 |
| |
3891 | 3891 |
| |
| 3892 | + | |
| 3893 | + | |
| 3894 | + | |
3892 | 3895 |
| |
3893 | 3896 |
| |
3894 | 3897 |
| |
|
Lines changed: 3 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
27 | 27 |
| |
28 | 28 |
| |
29 | 29 |
| |
| 30 | + | |
30 | 31 |
| |
31 | 32 |
| |
32 | 33 |
| |
| |||
569 | 570 |
| |
570 | 571 |
| |
571 | 572 |
| |
572 |
| - | |
| 573 | + | |
| 574 | + | |
573 | 575 |
| |
574 | 576 |
| |
575 | 577 |
| |
|
Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
867 | 867 |
| |
868 | 868 |
| |
869 | 869 |
| |
870 |
| - | |
| 870 | + | |
| 871 | + | |
871 | 872 |
| |
872 | 873 |
| |
873 | 874 |
| |
|
0 commit comments
Comments
(0)