forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitcba79a1
committed
Avoid fetching from an already-terminated plan.
Some plan node types don't react well to being called again afterthey've already returned NULL. PortalRunSelect() has long dealtwith this by calling the executor with NoMovementScanDirectionif it sees that we've already run the portal to the end. However,commitba2c6d6 overlooked this point, so that persisting analready-fully-fetched cursor would fail if it had such a plan.Per report from Tomas Barton. Back-patch to v11, as the faultycommit was. (I've omitted a test case because the type of planthat causes a problem isn't all that stable.)Discussion:https://postgr.es/m/CAPV2KRjd=ErgVGbvO2Ty20tKTEZZr6cYsYLxgN_W3eAo9pf5sw@mail.gmail.com1 parent9bcbd7c commitcba79a1
1 file changed
+15
-3
lines changedLines changed: 15 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
358 | 358 |
| |
359 | 359 |
| |
360 | 360 |
| |
| 361 | + | |
| 362 | + | |
361 | 363 |
| |
362 | 364 |
| |
363 | 365 |
| |
| |||
380 | 382 |
| |
381 | 383 |
| |
382 | 384 |
| |
383 |
| - | |
| 385 | + | |
384 | 386 |
| |
385 |
| - | |
386 | 387 |
| |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
387 | 399 |
| |
388 | 400 |
| |
389 | 401 |
| |
| |||
400 | 412 |
| |
401 | 413 |
| |
402 | 414 |
| |
403 |
| - | |
| 415 | + | |
404 | 416 |
| |
405 | 417 |
| |
406 | 418 |
| |
|
0 commit comments
Comments
(0)