nbtree: assert no scheduled primscan between pages.
commit492e6b54c604c39ecf5ebc812849185b20c4b1b6
authorPeter Geoghegan <pg@bowt.ie>
Wed, 30 Oct 2024 19:53:26 +0000 (30 15:53 -0400)
committerPeter Geoghegan <pg@bowt.ie>
Wed, 30 Oct 2024 19:53:26 +0000 (30 15:53 -0400)
tree4e4866860b6cb3c01263b3af8f8817051f036a51
parent81a25790f1f66319b4f088148b97dbb8badd4907
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.
src/backend/access/nbtree/nbtsearch.c