model-writtenrun 7942 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Andrew Gierth reproduced an IRC-reported failure where a merge full join without sort keys used a GiST index scan without Materialize; ExecSupportsMarkRestore incorrectly assumed every index scan supported mark/restore #1.
- Tom Lane suggested checking the AM callbacks directly #2, but Andrew explained that looking up the unavailable IndexAmRoutine could add overhead during join costing #3.
- Tom then supported adding a capability boolean to IndexOptInfo and identified padding after amcanparallel that would allow backpatching without changing the ABI, resolving Andrew's concern about older branches #4.
- Andrew posted the patch implementing that design, deriving amcanmarkpos from the presence of both mark and restore callbacks and consulting it for index scans #5.
- Tom questioned whether a regression test was necessary #6; Andrew explained that his testing exposed unstable join-side choices that complicated an EXPLAIN-based test #7, and Tom agreed to omit it in the thread's final message #8.
- Andrew subsequently committed #5 unchanged as 660b89928d, with backports for the longstanding bug; no further patch work remained in the thread.