forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit5af0263
committed
Make binaryheap available to frontend code.
There are a couple of places in frontend code that could make useof this simple binary heap implementation. This commit makesbinaryheap usable in frontend code, much like commit26aaf97 didfor StringInfo. Like StringInfo, the header file is left in lib/to reduce the likelihood of unnecessary breakage.The frontend version of binaryheap exposes a void *-based API sincefrontend code does not have access to the Datum definitions. Thisseemed like a better approach than switching all existing uses tovoid * or making the Datum definitions available to frontend code.Reviewed-by: Tom Lane, Alvaro HerreraDiscussion:https://postgr.es/m/3612876.1689443232%40sss.pgh.pa.us1 parentf73fa5a commit5af0263
File tree
7 files changed
+52
-20
lines changed- src
- backend/lib
- common
- include/lib
- tools/pgindent
7 files changed
+52
-20
lines changedLines changed: 0 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
16 |
| - | |
17 | 16 |
| |
18 | 17 |
| |
19 | 18 |
| |
|
Lines changed: 0 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 |
| - | |
5 | 4 |
| |
6 | 5 |
| |
7 | 6 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
48 | 48 |
| |
49 | 49 |
| |
50 | 50 |
| |
| 51 | + | |
51 | 52 |
| |
52 | 53 |
| |
53 | 54 |
| |
|
Lines changed: 30 additions & 11 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6 | 6 |
| |
7 | 7 |
| |
8 | 8 |
| |
9 |
| - | |
| 9 | + | |
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| 14 | + | |
| 15 | + | |
| 16 | + | |
14 | 17 |
| |
| 18 | + | |
15 | 19 |
| |
16 | 20 |
| |
17 | 21 |
| |
| 22 | + | |
| 23 | + | |
| 24 | + | |
18 | 25 |
| |
19 | 26 |
| |
20 | 27 |
| |
| |||
34 | 41 |
| |
35 | 42 |
| |
36 | 43 |
| |
37 |
| - | |
| 44 | + | |
38 | 45 |
| |
39 | 46 |
| |
40 | 47 |
| |
| |||
106 | 113 |
| |
107 | 114 |
| |
108 | 115 |
| |
109 |
| - | |
| 116 | + | |
110 | 117 |
| |
111 | 118 |
| |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
112 | 123 |
| |
| 124 | + | |
| 125 | + | |
113 | 126 |
| |
114 | 127 |
| |
115 | 128 |
| |
| |||
138 | 151 |
| |
139 | 152 |
| |
140 | 153 |
| |
141 |
| - | |
| 154 | + | |
142 | 155 |
| |
143 | 156 |
| |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
144 | 161 |
| |
| 162 | + | |
| 163 | + | |
145 | 164 |
| |
146 | 165 |
| |
147 | 166 |
| |
| |||
154 | 173 |
| |
155 | 174 |
| |
156 | 175 |
| |
157 |
| - | |
| 176 | + | |
158 | 177 |
| |
159 | 178 |
| |
160 | 179 |
| |
| |||
169 | 188 |
| |
170 | 189 |
| |
171 | 190 |
| |
172 |
| - | |
| 191 | + | |
173 | 192 |
| |
174 | 193 |
| |
175 |
| - | |
| 194 | + | |
176 | 195 |
| |
177 | 196 |
| |
178 | 197 |
| |
| |||
204 | 223 |
| |
205 | 224 |
| |
206 | 225 |
| |
207 |
| - | |
| 226 | + | |
208 | 227 |
| |
209 | 228 |
| |
210 | 229 |
| |
| |||
221 | 240 |
| |
222 | 241 |
| |
223 | 242 |
| |
224 |
| - | |
| 243 | + | |
225 | 244 |
| |
226 | 245 |
| |
227 | 246 |
| |
| |||
232 | 251 |
| |
233 | 252 |
| |
234 | 253 |
| |
235 |
| - | |
| 254 | + | |
236 | 255 |
| |
237 | 256 |
| |
238 | 257 |
| |
| |||
264 | 283 |
| |
265 | 284 |
| |
266 | 285 |
| |
267 |
| - | |
| 286 | + | |
268 | 287 |
| |
269 | 288 |
| |
270 | 289 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
| 6 | + | |
6 | 7 |
| |
7 | 8 |
| |
8 | 9 |
| |
|
Lines changed: 19 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
14 | 26 |
| |
15 | 27 |
| |
16 | 28 |
| |
17 | 29 |
| |
18 |
| - | |
| 30 | + | |
19 | 31 |
| |
20 | 32 |
| |
21 | 33 |
| |
| |||
34 | 46 |
| |
35 | 47 |
| |
36 | 48 |
| |
37 |
| - | |
| 49 | + | |
38 | 50 |
| |
39 | 51 |
| |
40 | 52 |
| |
41 | 53 |
| |
42 | 54 |
| |
43 | 55 |
| |
44 | 56 |
| |
45 |
| - | |
| 57 | + | |
46 | 58 |
| |
47 |
| - | |
48 |
| - | |
49 |
| - | |
50 |
| - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
51 | 63 |
| |
52 | 64 |
| |
53 | 65 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3198 | 3198 |
| |
3199 | 3199 |
| |
3200 | 3200 |
| |
| 3201 | + | |
3201 | 3202 |
| |
3202 | 3203 |
| |
3203 | 3204 |
| |
|
0 commit comments
Comments
(0)