Convert SLRUs to use the new shmem allocation functions
I replaced the old SimpleLruInit() function without a backwards
compatibility wrapper, because few extensions define their own SLRUs.
Reviewed-by: Ashutosh Bapat <ashutosh.bapat.oss@gmail.com>
Reviewed-by: Matthias van de Meent <boekewurm+postgres@gmail.com>
Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
Discussion: https://www.postgresql.org/message-id/CAExHW5vM1bneLYfg0wGeAa=52UiJ3z4vKd3AJ72X8Fw6k3KKrg@mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/2e0943a8597e1eeaec184465ba8b1f2f453a69e0
Modified Files
--------------
src/backend/access/transam/clog.c | 53 +++--
src/backend/access/transam/commit_ts.c | 85 +++----
src/backend/access/transam/multixact.c | 136 ++++++------
src/backend/access/transam/slru.c | 366 ++++++++++++++++---------------
src/backend/access/transam/subtrans.c | 57 +++--
src/backend/commands/async.c | 115 +++++-----
src/backend/storage/ipc/ipci.c | 16 --
src/backend/storage/ipc/shmem.c | 9 +-
src/backend/storage/lmgr/predicate.c | 273 ++++++++++-------------
src/backend/utils/activity/pgstat_slru.c | 1 +
src/include/access/clog.h | 2 -
src/include/access/commit_ts.h | 2 -
src/include/access/multixact.h | 2 -
src/include/access/slru.h | 114 ++++++----
src/include/access/subtrans.h | 2 -
src/include/commands/async.h | 3 -
src/include/storage/predicate.h | 5 -
src/include/storage/shmem_internal.h | 1 +
src/include/storage/subsystemlist.h | 10 +
src/test/modules/test_slru/test_slru.c | 106 ++++-----
src/tools/pgindent/typedefs.list | 4 +-
21 files changed, 689 insertions(+), 673 deletions(-)