forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit16a4e4a
committed
Extend the ProcSignal mechanism to support barriers.
A new function EmitProcSignalBarrier() can be used to emit a globalbarrier which all backends that participate in the ProcSignalmechanism must absorb, and a new function WaitForProcSignalBarrier()can be used to wait until all relevant backends have in factabsorbed the barrier.This can be used to coordinate global state changes, such as turningchecksums on while the system is running.There's no real client of this mechanism yet, although two areproposed, but an enum has to have at least one element, so thisincludes a placeholder type (PROCSIGNAL_BARRIER_PLACEHOLDER) whichshould be replaced by the first real client of this mechanism toget committed.Andres Freund and Robert Haas, reviewed by Daniel Gustafsson and,in earlier versions, by Magnus Hagander.Discussion:http://postgr.es/m/CA+TgmoZwDk=BguVDVa+qdA6SBKef=PKbaKDQALTC_9qoz1mJqg@mail.gmail.com1 parent9f83468 commit16a4e4a
File tree
14 files changed
+350
-14
lines changed- doc/src/sgml
- src
- backend
- postmaster
- replication
- storage
- buffer
- ipc
- tcop
- utils/init
- include
- storage
14 files changed
+350
-14
lines changedLines changed: 5 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1473 | 1473 |
| |
1474 | 1474 |
| |
1475 | 1475 |
| |
1476 |
| - | |
| 1476 | + | |
1477 | 1477 |
| |
1478 | 1478 |
| |
1479 | 1479 |
| |
| |||
1593 | 1593 |
| |
1594 | 1594 |
| |
1595 | 1595 |
| |
| 1596 | + | |
| 1597 | + | |
| 1598 | + | |
| 1599 | + | |
1596 | 1600 |
| |
1597 | 1601 |
| |
1598 | 1602 |
| |
|
Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
820 | 820 |
| |
821 | 821 |
| |
822 | 822 |
| |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
823 | 827 |
| |
824 | 828 |
| |
825 | 829 |
| |
|
Lines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
524 | 524 |
| |
525 | 525 |
| |
526 | 526 |
| |
| 527 | + | |
| 528 | + | |
| 529 | + | |
527 | 530 |
| |
528 | 531 |
| |
529 | 532 |
| |
| |||
710 | 713 |
| |
711 | 714 |
| |
712 | 715 |
| |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
713 | 720 |
| |
714 | 721 |
| |
715 | 722 |
| |
|
Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
20 | 20 |
| |
21 | 21 |
| |
22 | 22 |
| |
| 23 | + | |
23 | 24 |
| |
24 | 25 |
| |
25 | 26 |
| |
| |||
31 | 32 |
| |
32 | 33 |
| |
33 | 34 |
| |
| 35 | + | |
| 36 | + | |
| 37 | + | |
34 | 38 |
| |
35 | 39 |
| |
36 | 40 |
| |
|
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3988 | 3988 |
| |
3989 | 3989 |
| |
3990 | 3990 |
| |
| 3991 | + | |
| 3992 | + | |
| 3993 | + | |
3991 | 3994 |
| |
3992 | 3995 |
| |
3993 | 3996 |
| |
|
Lines changed: 5 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
96 | 96 |
| |
97 | 97 |
| |
98 | 98 |
| |
99 |
| - | |
| 99 | + | |
100 | 100 |
| |
101 | 101 |
| |
102 | 102 |
| |
| |||
121 | 121 |
| |
122 | 122 |
| |
123 | 123 |
| |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
124 | 128 |
| |
125 | 129 |
| |
126 | 130 |
| |
|
Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
148 | 148 |
| |
149 | 149 |
| |
150 | 150 |
| |
151 |
| - | |
| 151 | + | |
| 152 | + | |
152 | 153 |
| |
153 | 154 |
| |
154 | 155 |
| |
|
Lines changed: 10 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1852 | 1852 |
| |
1853 | 1853 |
| |
1854 | 1854 |
| |
| 1855 | + | |
| 1856 | + | |
| 1857 | + | |
| 1858 | + | |
1855 | 1859 |
| |
1856 | 1860 |
| |
1857 | 1861 |
| |
| |||
1930 | 1934 |
| |
1931 | 1935 |
| |
1932 | 1936 |
| |
| 1937 | + | |
| 1938 | + | |
| 1939 | + | |
| 1940 | + | |
1933 | 1941 |
| |
1934 | 1942 |
| |
1935 | 1943 |
| |
| |||
2018 | 2026 |
| |
2019 | 2027 |
| |
2020 | 2028 |
| |
| 2029 | + | |
| 2030 | + | |
2021 | 2031 |
| |
2022 | 2032 |
| |
2023 | 2033 |
| |
|
0 commit comments
Comments
(0)