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

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: b83033c) | patch
Use atomic access for SlruShared->latest_page_number
Tue, 6 Feb 2024 09:54:10 +0000 (10:54 +0100)
Tue, 6 Feb 2024 09:54:10 +0000 (10:54 +0100)
commit d172b717c6f436738cc8383a4e9f611ae227fd93
Use atomic access for SlruShared->latest_page_number

The new concurrency model proposed for slru.c to improve performance
does not include any single lock that would coordinate processes
doing concurrent reads/writes on SlruShared->latest_page_number.
We can instead use atomic reads and writes for that variable.

Author: Dilip Kumar <dilipbalaut@gmail.com>
Reviewed-by: Andrey M. Borodin <x4mmm@yandex-team.ru>
Discussion: https://postgr.es/m/CAFiTN-vzDvNz=ExGXz6gdyjtzGixKSqs0mKHMmaQ8sOSEFZ33A@mail.gmail.com
src/backend/access/transam/clog.c diff | blob | blame | history
src/backend/access/transam/commit_ts.c diff | blob | blame | history
src/backend/access/transam/multixact.c diff | blob | blame | history
src/backend/access/transam/slru.c diff | blob | blame | history
src/include/access/slru.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

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