forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit8c8a886
committed
Add palloc_extended for frontend and backend.
This commit also adds pg_malloc_extended for frontend. These interfacescan be used to control at a lower level memory allocation using an interfacesimilar to MemoryContextAllocExtended. For example, the callers can specifyMCXT_ALLOC_NO_OOM if they want to suppress the "out of memory" error whileallocating the memory and handle a NULL return value.Michael Paquier, reviewed by me.1 parentbc49d93 commit8c8a886
File tree
4 files changed
+85
-12
lines changed- src
- backend/utils/mmgr
- common
- include
- common
- utils
4 files changed
+85
-12
lines changedLines changed: 37 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
864 | 864 |
| |
865 | 865 |
| |
866 | 866 |
| |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
867 | 904 |
| |
868 | 905 |
| |
869 | 906 |
| |
|
Lines changed: 32 additions & 11 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
22 |
| - | |
23 |
| - | |
| 22 | + | |
| 23 | + | |
24 | 24 |
| |
25 | 25 |
| |
26 | 26 |
| |
27 | 27 |
| |
28 | 28 |
| |
29 | 29 |
| |
30 | 30 |
| |
31 |
| - | |
| 31 | + | |
32 | 32 |
| |
33 |
| - | |
34 |
| - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
35 | 39 |
| |
| 40 | + | |
| 41 | + | |
| 42 | + | |
36 | 43 |
| |
37 | 44 |
| |
38 | 45 |
| |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
39 | 52 |
| |
40 | 53 |
| |
41 | 54 |
| |
42 |
| - | |
| 55 | + | |
| 56 | + | |
43 | 57 |
| |
44 |
| - | |
45 |
| - | |
46 |
| - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
47 | 62 |
| |
48 | 63 |
| |
49 | 64 |
| |
| |||
100 | 115 |
| |
101 | 116 |
| |
102 | 117 |
| |
103 |
| - | |
| 118 | + | |
104 | 119 |
| |
105 | 120 |
| |
106 | 121 |
| |
107 | 122 |
| |
108 | 123 |
| |
109 |
| - | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
110 | 131 |
| |
111 | 132 |
| |
112 | 133 |
| |
|
Lines changed: 15 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
12 |
| - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
13 | 25 |
| |
14 | 26 |
| |
15 | 27 |
| |
| 28 | + | |
16 | 29 |
| |
17 | 30 |
| |
18 | 31 |
| |
19 | 32 |
| |
20 | 33 |
| |
21 | 34 |
| |
22 | 35 |
| |
| 36 | + | |
23 | 37 |
| |
24 | 38 |
| |
25 | 39 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
76 | 76 |
| |
77 | 77 |
| |
78 | 78 |
| |
| 79 | + | |
79 | 80 |
| |
80 | 81 |
| |
81 | 82 |
| |
|
0 commit comments
Comments
(0)