postgresql/src/backend/access
Peter Geoghegan b029395f5e Refactor nbtree fastpath optimization.
Commit 2b272734, which added the fastpath rightmost leaf page cache
insert optimization, added code to _bt_doinsert() to handle using and
invalidating the backend local block cache.  It doesn't seem like a good
place to handle these low level details, though.  _bt_doinsert() is
supposed to be a high level function -- it is the main entry point to
nbtinsert.c.

Restructure the code by placing handling of the rightmost block cache at
the start of a new _bt_search() shim function, _bt_search_insert().  The
new function is called from _bt_doinsert(), which uses it as a
_bt_search() variant that conveniently accepts its BTInsertState state
as an argument.  _bt_doinsert() no longer needs to directly consider the
fastpath optimization.

Discussion: https://postgr.es/m/CAH2-Wzk59cxKJRd=rfbyub6-V4yWRjsOYRkUNHBLT1P1GdtCQQ@mail.gmail.com
2020-03-18 14:42:49 -07:00
..
brin Remove utils/acl.h from catalog/objectaddress.h 2020-03-10 10:27:00 +01:00
common Introduce a maintenance_io_concurrency setting. 2020-03-16 17:14:26 +13:00
gin Simplify/speed up assertion cross-check in ginCompressPostingList(). 2020-03-07 13:31:17 -05:00
gist Clean up newlines following left parentheses 2020-01-30 13:42:14 -03:00
hash Move src/backend/utils/hash/hashfn.c to src/common 2020-02-27 09:25:41 +05:30
heap Introduce a maintenance_io_concurrency setting. 2020-03-16 17:14:26 +13:00
index Add deduplication to nbtree. 2020-02-26 13:05:30 -08:00
nbtree Refactor nbtree fastpath optimization. 2020-03-18 14:42:49 -07:00
rmgrdesc Add deduplication to nbtree. 2020-02-26 13:05:30 -08:00
spgist Clean up newlines following left parentheses 2020-01-30 13:42:14 -03:00
table Introduce macros for typalign and typstorage constants. 2020-03-04 10:34:25 -05:00
tablesample Move src/backend/utils/hash/hashfn.c to src/common 2020-02-27 09:25:41 +05:30
transam Fix comment in xlog.c. 2020-03-17 12:06:22 +09:00
Makefile Introduce access/{table.h, relation.h}, for generic functions from heapam.h. 2019-01-21 10:51:36 -08:00