forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit6f5034e
committed
Redesign API presented by nodeAgg.c for ordered-set and similar aggregates.
The previous design exposed the input and output ExprContexts of theAgg plan node, but work on grouping sets has suggested that we'll regretdoing that. Instead provide more narrowly-defined APIs that can beimplemented in multiple ways, namely a way to get a short-term memorycontext and a way to register an aggregate shutdown callback.Back-patch to 9.4 where the bad APIs were introduced, since we don'twant third-party code using these APIs and then having to change in 9.5.Andrew Gierth1 parent8b6010b commit6f5034e
File tree
3 files changed
+34
-28
lines changed- src
- backend
- executor
- utils/adt
- include
3 files changed
+34
-28
lines changedLines changed: 25 additions & 13 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2199 | 2199 |
| |
2200 | 2200 |
| |
2201 | 2201 |
| |
2202 |
| - | |
| 2202 | + | |
2203 | 2203 |
| |
2204 |
| - | |
2205 |
| - | |
2206 |
| - | |
| 2204 | + | |
| 2205 | + | |
| 2206 | + | |
| 2207 | + | |
2207 | 2208 |
| |
2208 | 2209 |
| |
2209 | 2210 |
| |
2210 |
| - | |
2211 |
| - | |
| 2211 | + | |
| 2212 | + | |
2212 | 2213 |
| |
2213 | 2214 |
| |
2214 | 2215 |
| |
2215 | 2216 |
| |
2216 | 2217 |
| |
2217 |
| - | |
| 2218 | + | |
2218 | 2219 |
| |
2219 | 2220 |
| |
2220 | 2221 |
| |
2221 | 2222 |
| |
2222 | 2223 |
| |
2223 |
| - | |
| 2224 | + | |
2224 | 2225 |
| |
2225 | 2226 |
| |
2226 |
| - | |
| 2227 | + | |
| 2228 | + | |
| 2229 | + | |
| 2230 | + | |
| 2231 | + | |
| 2232 | + | |
| 2233 | + | |
| 2234 | + | |
2227 | 2235 |
| |
2228 | 2236 |
| |
2229 | 2237 |
| |
2230 |
| - | |
2231 |
| - | |
| 2238 | + | |
| 2239 | + | |
| 2240 | + | |
| 2241 | + | |
2232 | 2242 |
| |
2233 | 2243 |
| |
2234 | 2244 |
| |
2235 | 2245 |
| |
2236 | 2246 |
| |
2237 |
| - | |
| 2247 | + | |
| 2248 | + | |
| 2249 | + | |
2238 | 2250 |
| |
2239 |
| - | |
| 2251 | + | |
2240 | 2252 |
| |
2241 | 2253 |
| |
2242 | 2254 |
| |
|
Lines changed: 4 additions & 12 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
49 | 49 |
| |
50 | 50 |
| |
51 | 51 |
| |
52 |
| - | |
53 |
| - | |
54 | 52 |
| |
55 | 53 |
| |
56 | 54 |
| |
| |||
117 | 115 |
| |
118 | 116 |
| |
119 | 117 |
| |
120 |
| - | |
121 | 118 |
| |
122 | 119 |
| |
123 | 120 |
| |
| |||
133 | 130 |
| |
134 | 131 |
| |
135 | 132 |
| |
136 |
| - | |
137 |
| - | |
138 |
| - | |
139 |
| - | |
140 | 133 |
| |
141 | 134 |
| |
142 | 135 |
| |
| |||
150 | 143 |
| |
151 | 144 |
| |
152 | 145 |
| |
153 |
| - | |
154 | 146 |
| |
155 | 147 |
| |
156 | 148 |
| |
| |||
291 | 283 |
| |
292 | 284 |
| |
293 | 285 |
| |
294 |
| - | |
295 |
| - | |
296 |
| - | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
297 | 289 |
| |
298 | 290 |
| |
299 | 291 |
| |
| |||
1310 | 1302 |
| |
1311 | 1303 |
| |
1312 | 1304 |
| |
1313 |
| - | |
| 1305 | + | |
1314 | 1306 |
| |
1315 | 1307 |
| |
1316 | 1308 |
| |
|
Lines changed: 5 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
23 | 23 |
| |
24 | 24 |
| |
25 | 25 |
| |
26 |
| - | |
| 26 | + | |
27 | 27 |
| |
28 | 28 |
| |
29 | 29 |
| |
| |||
656 | 656 |
| |
657 | 657 |
| |
658 | 658 |
| |
659 |
| - | |
660 |
| - | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
661 | 663 |
| |
662 | 664 |
| |
663 | 665 |
| |
|
0 commit comments
Comments
(0)