pgsql: Fix SP-GiST scan initialization logic for binary-compatible case

2021-11-20 Thread Tom Lane
Fix SP-GiST scan initialization logic for binary-compatible cases. Commit ac9099fc1 rearranged the logic in spgGetCache() that determines the index's attType (nominal input data type) and leafType (actual type stored in leaf index tuples). Turns out this broke things for the case where (a) the ac

pgsql: Fix SP-GiST scan initialization logic for binary-compatible case

2021-11-20 Thread Tom Lane
Fix SP-GiST scan initialization logic for binary-compatible cases. Commit ac9099fc1 rearranged the logic in spgGetCache() that determines the index's attType (nominal input data type) and leafType (actual type stored in leaf index tuples). Turns out this broke things for the case where (a) the ac