git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 59bd34c) | patch
Provide multi-block smgrprefetch().
2023年12月16日 03:14:47 +0000 (16:14 +1300)
2023年12月16日 04:51:21 +0000 (17:51 +1300)
commit b485ad7f07c80efbfd47329f138f0fe3a5acf013
Provide multi-block smgrprefetch().

Previously smgrprefetch() could issue POSIX_FADV_WILLNEED advice for a
single block at a time. Add an nblocks argument so that we can do the
same for a range of blocks. This usually produces a single system call,
but might need to loop if it crosses a segment boundary. Initially it
is only called with nblocks == 1, but proposed patches will make wider
calls.

Reviewed-by: Heikki Linnakangas <hlinnaka@iki.fi> (earlier version)
Discussion: https://postgr.es/m/CA+hUKGJkOiOCa+mag4BF+zHo7qo=o9CFheB8=g6uT5TUm2gkvA@mail.gmail.com
src/backend/storage/buffer/bufmgr.c diff | blob | blame | history
src/backend/storage/buffer/localbuf.c diff | blob | blame | history
src/backend/storage/smgr/md.c diff | blob | blame | history
src/backend/storage/smgr/smgr.c diff | blob | blame | history
src/include/storage/md.h diff | blob | blame | history
src/include/storage/smgr.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /