pgsql: Fix bug in nbtree array primitive scan scheduling.

2024-10-30 Thread Peter Geoghegan
Fix bug in nbtree array primitive scan scheduling. A bug in nbtree's handling of primitive index scan scheduling could lead to wrong answers when a scrollable cursor was used with an index scan that had a SAOP index qual. Wrong answers were only possible when the scan direction changed after a pr

pgsql: Fix bug in nbtree array primitive scan scheduling.

2024-10-30 Thread Peter Geoghegan
Fix bug in nbtree array primitive scan scheduling. A bug in nbtree's handling of primitive index scan scheduling could lead to wrong answers when a scrollable cursor was used with an index scan that had a SAOP index qual. Wrong answers were only possible when the scan direction changed after a pr