model-writtenrun 8549 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Bilal Kahraman opened a standalone bugfix thread because existing SP-GiST index-only scans could misinterpret a non-returnable polygon key and return corrupted INCLUDE values or crash, independently of the index-prefetching work #1.
- Bilal adapted Rui Zhao's approach from the prefetching work: request keys only when reconstructable, otherwise return NULL and avoid copying the key into the ordered-scan queue; he supplied two regression cases and reported successful testing across branches #1.
- Peter Geoghegan committed the patch as 0c9fc1a96b, adding the corresponding canReturnData check for inner consistent functions and reducing the regression coverage to one simpler case.
- Peter announced that the tweaked patch had been pushed #2, and 0c9fc1a96b was backpatched through PostgreSQL 15.
- Rui subsequently checked both versions and endorsed the added inner-function guard and simpler test #3; his review came after the commit, and the thread ended with the fix landed and no outstanding requests.