On Wed, Nov 11, 2026 at 6:17 AM Bilal Kahraman <[email protected]> wrote: > An SP-GiST index whose opclass cannot reconstruct the key value > (canReturnData = false) can still have INCLUDE columns, which are always > returnable. The planner can therefore choose an index-only scan for a > query that needs only INCLUDE columns. The scan nevertheless asks > leaf_consistent to return the key and stores whatever comes back as the > key column of the reconstructed tuple.
Pushed a slightly tweaked version of your patch just now. Thanks -- Peter Geoghegan
