Content-Length: 256188 | pFad | http://github.com/postgrespro/postgres/commit/492e6b54c604c39ecf5ebc812849185b20c4b1b6

39 nbtree: assert no scheduled primscan between pages. · postgrespro/postgres@492e6b5 · GitHub
Skip to content

Commit 492e6b5

Browse files
nbtree: assert no scheduled primscan between pages.
Follow-up to bugfix commit 763d65a. 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.
1 parent 81a2579 commit 492e6b5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/backend/access/nbtree/nbtsearch.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2272,6 +2272,8 @@ _bt_readnextpage(IndexScanDesc scan, BlockNumber blkno,
22722272
return false;
22732273
}
22742274

2275+
Assert(!so->needPrimScan);
2276+
22752277
if (ScanDirectionIsForward(dir))
22762278
{
22772279
/* read blkno, but check for interrupts first */

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/492e6b54c604c39ecf5ebc812849185b20c4b1b6

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy