forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitdad4cb6
committed
Improve tuplestore.c to support multiple concurrent read positions.
This facility replaces the former mark/restore support but is otherwiseupward-compatible with previous uses. It's expected to be needed forsingle evaluation of CTEs and also for window functions, so I'm committingit separately instead of waiting for either one of those patches to befinished. Per discussion with Greg Stark and Hitoshi Harada.Note: I removed nodeFunctionscan's mark/restore support, instead of botheringto update it for this change, because it was dead code anyway.1 parent233f135 commitdad4cb6
File tree
7 files changed
+382
-236
lines changed- src
- backend
- executor
- utils/sort
- include
- executor
- nodes
- utils
7 files changed
+382
-236
lines changedLines changed: 2 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 |
| |
| |||
239 | 239 |
| |
240 | 240 |
| |
241 | 241 |
| |
242 |
| - | |
243 |
| - | |
244 |
| - | |
245 |
| - | |
246 | 242 |
| |
247 | 243 |
| |
248 | 244 |
| |
| |||
296 | 292 |
| |
297 | 293 |
| |
298 | 294 |
| |
299 |
| - | |
300 |
| - | |
301 |
| - | |
302 |
| - | |
303 | 295 |
| |
304 | 296 |
| |
305 | 297 |
| |
| |||
332 | 324 |
| |
333 | 325 |
| |
334 | 326 |
| |
335 |
| - | |
| 327 | + | |
336 | 328 |
| |
337 | 329 |
| |
338 | 330 |
| |
| |||
342 | 334 |
| |
343 | 335 |
| |
344 | 336 |
| |
345 |
| - | |
346 | 337 |
| |
347 | 338 |
| |
348 | 339 |
| |
|
Lines changed: 4 additions & 37 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
131 | 131 |
| |
132 | 132 |
| |
133 | 133 |
| |
| 134 | + | |
| 135 | + | |
| 136 | + | |
134 | 137 |
| |
135 | 138 |
| |
136 | 139 |
| |
| |||
273 | 276 |
| |
274 | 277 |
| |
275 | 278 |
| |
276 |
| - | |
277 |
| - | |
278 |
| - | |
279 |
| - | |
280 |
| - | |
281 |
| - | |
282 |
| - | |
283 |
| - | |
284 |
| - | |
285 |
| - | |
286 |
| - | |
287 |
| - | |
288 |
| - | |
289 |
| - | |
290 |
| - | |
291 |
| - | |
292 |
| - | |
293 |
| - | |
294 |
| - | |
295 |
| - | |
296 |
| - | |
297 |
| - | |
298 |
| - | |
299 |
| - | |
300 |
| - | |
301 |
| - | |
302 |
| - | |
303 |
| - | |
304 |
| - | |
305 |
| - | |
306 |
| - | |
307 |
| - | |
308 |
| - | |
309 |
| - | |
310 |
| - | |
311 |
| - | |
312 | 279 |
| |
313 | 280 |
| |
314 | 281 |
| |
|
Lines changed: 24 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
51 | 51 |
| |
52 | 52 |
| |
53 | 53 |
| |
54 |
| - | |
| 54 | + | |
55 | 55 |
| |
56 | 56 |
| |
57 | 57 |
| |
| |||
60 | 60 |
| |
61 | 61 |
| |
62 | 62 |
| |
63 |
| - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
64 | 76 |
| |
65 | 77 |
| |
66 | 78 |
| |
| |||
236 | 248 |
| |
237 | 249 |
| |
238 | 250 |
| |
239 |
| - | |
| 251 | + | |
240 | 252 |
| |
241 | 253 |
| |
242 | 254 |
| |
| |||
262 | 274 |
| |
263 | 275 |
| |
264 | 276 |
| |
265 |
| - | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
266 | 281 |
| |
267 | 282 |
| |
268 | 283 |
| |
| |||
283 | 298 |
| |
284 | 299 |
| |
285 | 300 |
| |
286 |
| - | |
| 301 | + | |
287 | 302 |
| |
288 |
| - | |
| 303 | + | |
289 | 304 |
| |
290 | 305 |
| |
291 | 306 |
| |
| |||
322 | 337 |
| |
323 | 338 |
| |
324 | 339 |
| |
325 |
| - | |
| 340 | + | |
326 | 341 |
| |
327 | 342 |
| |
328 | 343 |
| |
329 | 344 |
| |
330 | 345 |
| |
331 | 346 |
| |
332 |
| - | |
| 347 | + | |
333 | 348 |
| |
334 | 349 |
| |
335 | 350 |
| |
|
0 commit comments
Comments
(0)