Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit492e6b5

Browse files
nbtree: assert no scheduled primscan between pages.
Follow-up to bugfix commit763d65a. Technically this new assertion isredundant with the assertion recently added to _bt_readpage by that samecommit, but it seems like a good idea to have both.The new assertion makes it clear that we expect to call _bt_readnextpagewhen there's another primitive index scan scheduled, though only whenneeded as the final step of ending the current primitive scan.
1 parent81a2579 commit492e6b5

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)

[8]ページ先頭

©2009-2025 Movatter.jp