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

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: a916b47) | patch
Index SLRUs by 64-bit integers rather than by 32-bit integers
2023年11月28日 23:39:55 +0000 (01:39 +0200)
2023年11月28日 23:40:56 +0000 (01:40 +0200)
commit 4ed8f0913bfdb5f3551de3c27fc2c2e880abc5a2
Index SLRUs by 64-bit integers rather than by 32-bit integers

We've had repeated bugs in the area of handling SLRU wraparound in the past,
some of which have caused data loss. Switching to an indexing system for SLRUs
that does not wrap around should allow us to get rid of a whole bunch
of problems and improve the overall reliability of the system.

This particular patch however only changes the indexing and doesn't address
the wraparound per se. This is going to be done in the following patches.

Author: Maxim Orlov, Aleksander Alekseev, Alexander Korotkov, Teodor Sigaev
Author: Nikita Glukhov, Pavel Borisov, Yura Sokolov
Reviewed-by: Jacob Champion, Heikki Linnakangas, Alexander Korotkov
Reviewed-by: Japin Li, Pavel Borisov, Tom Lane, Peter Eisentraut, Andres Freund
Reviewed-by: Andrey Borodin, Dilip Kumar, Aleksander Alekseev
Discussion: https://postgr.es/m/CACG%3DezZe1NQSCnfHOr78AtAZxJZeCvxrts0ygrxYwe%3DpyyjVWA%40mail.gmail.com
Discussion: https://postgr.es/m/CAJ7c6TPDOYBYrnCAeyndkBktO0WG2xSdYduTF0nxq%2BvfkmTF5Q%40mail.gmail.com
18 files changed:
src/backend/access/rmgrdesc/clogdesc.c diff | blob | blame | history
src/backend/access/rmgrdesc/committsdesc.c diff | blob | blame | history
src/backend/access/rmgrdesc/mxactdesc.c diff | blob | blame | history
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/backend/access/transam/subtrans.c diff | blob | blame | history
src/backend/commands/async.c diff | blob | blame | history
src/backend/storage/lmgr/predicate.c diff | blob | blame | history
src/include/access/clog.h diff | blob | blame | history
src/include/access/commit_ts.h diff | blob | blame | history
src/include/access/slru.h diff | blob | blame | history
src/include/storage/proc.h diff | blob | blame | history
src/include/storage/sync.h diff | blob | blame | history
src/test/modules/test_slru/expected/test_slru.out diff | blob | blame | history
src/test/modules/test_slru/test_slru--1.0.sql diff | blob | blame | history
src/test/modules/test_slru/test_slru.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

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