git.postgresql.org Git - postgresql.git/commit
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
This is the main PostgreSQL git repository.
RSS
Atom