- Notifications
You must be signed in to change notification settings - Fork5
Commit79a4d24
committed
Make it easy to detach completely from shared memory.
The new function dsm_detach_all() can be used either by postmasterchildren that don't wish to take any risk of accidentally corruptingshared memory; or by forked children of regular backends withthe same need. This patch also updates the postmaster children thatalready do PGSharedMemoryDetach() to do dsm_detach_all() as well.Per discussion with Tom Lane.1 parent551fb5a commit79a4d24
File tree
5 files changed
+34
-0
lines changed- src
- backend
- postmaster
- storage/ipc
- include/storage
5 files changed
+34
-0
lines changedLines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
40 | 40 |
| |
41 | 41 |
| |
42 | 42 |
| |
| 43 | + | |
43 | 44 |
| |
44 | 45 |
| |
45 | 46 |
| |
| |||
163 | 164 |
| |
164 | 165 |
| |
165 | 166 |
| |
| 167 | + | |
166 | 168 |
| |
167 | 169 |
| |
168 | 170 |
| |
|
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
50 | 50 |
| |
51 | 51 |
| |
52 | 52 |
| |
| 53 | + | |
53 | 54 |
| |
54 | 55 |
| |
55 | 56 |
| |
| |||
709 | 710 |
| |
710 | 711 |
| |
711 | 712 |
| |
| 713 | + | |
712 | 714 |
| |
713 | 715 |
| |
714 | 716 |
| |
|
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
39 | 39 |
| |
40 | 40 |
| |
41 | 41 |
| |
| 42 | + | |
42 | 43 |
| |
43 | 44 |
| |
44 | 45 |
| |
| |||
626 | 627 |
| |
627 | 628 |
| |
628 | 629 |
| |
| 630 | + | |
629 | 631 |
| |
630 | 632 |
| |
631 | 633 |
| |
|
Lines changed: 27 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
722 | 722 |
| |
723 | 723 |
| |
724 | 724 |
| |
| 725 | + | |
| 726 | + | |
725 | 727 |
| |
726 | 728 |
| |
727 | 729 |
| |
| |||
735 | 737 |
| |
736 | 738 |
| |
737 | 739 |
| |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
738 | 765 |
| |
739 | 766 |
| |
740 | 767 |
| |
|
Lines changed: 1 addition & 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 |
| |
|
0 commit comments
Comments
(0)