pgsql: nbtree: assert no scheduled primscan between pages.

From: Peter Geoghegan <pg(at)bowt(dot)ie>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: nbtree: assert no scheduled primscan between pages.
Date: 2024-10-30 19:53:41
Message-ID: E1t6ElC-003C4u-24@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/492e6b54c604c39ecf5ebc812849185b20c4b1b6

Modified Files
--------------
src/backend/access/nbtree/nbtsearch.c | 2 ++
1 file changed, 2 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Andrew Dunstan 2024-10-30 20:14:37 Re: pgsql: Update time zone data files to tzdata release 2024b.
Previous Message Peter Geoghegan 2024-10-30 17:44:04 pgsql: Clarify nbtree array exhaustion comments.