nbtree: assert no scheduled primscan between pages.

Peter Geoghegan <pg@bowt.ie>

Commit: 492e6b54c604c39ecf5ebc812849185b20c4b1b6
Author: Peter Geoghegan <pg@bowt.ie>
Date: 2024-10-30T19:53:26Z
Releases: 18.0
nbtree: assert no scheduled primscan between pages.

Follow-up to bugfix commit 763d65ae.  Technically this new assertion is
redundant with the assertion recently added to _bt_readpage by that same
commit, but it seems like a good idea to have both.

The new assertion makes it clear that we expect to call _bt_readnextpage
when there's another primitive index scan scheduled, though only when
needed as the final step of ending the current primitive scan.

Files

PathChange+/−
src/backend/access/nbtree/nbtsearch.c modified +2 −0