forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit660b899
committed
Properly check index mark/restore in ExecSupportsMarkRestore.
Previously this code assumed that all IndexScan nodes supportedmark/restore, which is not true since it depends on optional index AMsupport functions. This could lead to errors about missing supportfunctions in rare edge cases of mergejoins with no sort keys, where anunordered non-btree index scan was placed on the inner path without aprotecting Materialize node. (Normally, the fact that merge joinrequires ordered input would avoid this error.)Backpatch all the way since this bug is ancient.Per report from Eugen Konkov on irc.Discussion:https://postgr.es/m/87o8jn50be.fsf@news-spur.riddles.org.uk1 parentb0727ae commit660b899
File tree
3 files changed
+8
-0
lines changed- src
- backend
- executor
- optimizer/util
- include/nodes
3 files changed
+8
-0
lines changedLines changed: 5 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
417 | 417 |
| |
418 | 418 |
| |
419 | 419 |
| |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
420 | 425 |
| |
421 | 426 |
| |
422 | 427 |
| |
|
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
284 | 284 |
| |
285 | 285 |
| |
286 | 286 |
| |
| 287 | + | |
| 288 | + | |
287 | 289 |
| |
288 | 290 |
| |
289 | 291 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
864 | 864 |
| |
865 | 865 |
| |
866 | 866 |
| |
| 867 | + | |
867 | 868 |
| |
868 | 869 |
| |
869 | 870 |
| |
|
0 commit comments
Comments
(0)