postgresql/src/include/nodes
Andrew Gierth 660b89928d Properly check index mark/restore in ExecSupportsMarkRestore.
Previously this code assumed that all IndexScan nodes supported
mark/restore, which is not true since it depends on optional index AM
support functions. This could lead to errors about missing support
functions in rare edge cases of mergejoins with no sort keys, where an
unordered non-btree index scan was placed on the inner path without a
protecting Materialize node. (Normally, the fact that merge join
requires 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.uk
2020-11-24 21:58:32 +00:00
..
bitmapset.h Move bitmap_hash and bitmap_match to bitmapset.c. 2020-02-24 17:17:43 +05:30
execnodes.h Move per-agg and per-trans duplicate finding to the planner. 2020-11-24 10:45:00 +02:00
extensible.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
lockoptions.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
makefuncs.h Improve our ability to regurgitate SQL-syntax function calls. 2020-11-04 12:34:50 -05:00
memnodes.h Revert "Specialize MemoryContextMemAllocated()." 2020-03-19 12:21:50 -07:00
nodeFuncs.h Suppress unnecessary RelabelType nodes in yet more cases. 2020-08-19 14:07:49 -04:00
nodes.h Move per-agg and per-trans duplicate finding to the planner. 2020-11-24 10:45:00 +02:00
params.h Initial pgindent and pgperltidy run for v13. 2020-05-14 13:06:50 -04:00
parsenodes.h Remove undocumented IS [NOT] OF syntax. 2020-11-19 17:39:39 -05:00
pathnodes.h Properly check index mark/restore in ExecSupportsMarkRestore. 2020-11-24 21:58:32 +00:00
pg_list.h Add pg_nodiscard decorations to some functions 2020-11-11 11:00:27 +01:00
plannodes.h Include result relation info in direct modify ForeignScan nodes. 2020-10-14 10:58:38 +03:00
primnodes.h Move per-agg and per-trans duplicate finding to the planner. 2020-11-24 10:45:00 +02:00
print.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
readfuncs.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
replnodes.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
supportnodes.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
tidbitmap.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
value.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00