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

Commitb029395

Browse files
Refactor nbtree fastpath optimization.
Commit2b27273, which added the fastpath rightmost leaf page cacheinsert optimization, added code to _bt_doinsert() to handle using andinvalidating the backend local block cache. It doesn't seem like a goodplace to handle these low level details, though. _bt_doinsert() issupposed to be a high level function -- it is the main entry point tonbtinsert.c.Restructure the code by placing handling of the rightmost block cache atthe start of a new _bt_search() shim function, _bt_search_insert(). Thenew function is called from _bt_doinsert(), which uses it as a_bt_search() variant that conveniently accepts its BTInsertState stateas an argument. _bt_doinsert() no longer needs to directly consider thefastpath optimization.Discussion:https://postgr.es/m/CAH2-Wzk59cxKJRd=rfbyub6-V4yWRjsOYRkUNHBLT1P1GdtCQQ@mail.gmail.com
1 parenta2b1faa commitb029395

File tree

1 file changed

+160
-125
lines changed

1 file changed

+160
-125
lines changed

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp