Rename some shared memory initialization routines
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Thu, 29 Aug 2024 06:46:21 +0000 (09:46 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Thu, 29 Aug 2024 06:46:21 +0000 (09:46 +0300)
commit478846e7688c9ab73d2695a66822e9ae0574b551
tree119f557cdd41e48f26ee5be37f93a95d8fe97b5e
parentfbce7dfc77eaa0d017dfee78c9d27b142d435e41
Rename some shared memory initialization routines

To make them follow the usual naming convention where
FoobarShmemSize() calculates the amount of shared memory needed by
Foobar subsystem, and FoobarShmemInit() performs the initialization.

I didn't rename CreateLWLocks() and InitShmmeIndex(), because they are
a little special. They need to be called before any of the other
ShmemInit() functions, because they set up the shared memory
bookkeeping itself. I also didn't rename InitProcGlobal(), because
unlike other Shmeminit functions, it's not called by individual
backends.

Reviewed-by: Andreas Karlsson
Discussion: https://www.postgresql.org/message-id/c09694ff-2453-47e5-b26c-32a16cd75ce6@iki.fi
14 files changed:
src/backend/storage/buffer/buf_init.c
src/backend/storage/buffer/bufmgr.c
src/backend/storage/buffer/freelist.c
src/backend/storage/ipc/ipci.c
src/backend/storage/ipc/procarray.c
src/backend/storage/ipc/sinvaladt.c
src/backend/storage/lmgr/predicate.c
src/backend/utils/activity/backend_status.c
src/backend/utils/init/postinit.c
src/include/storage/bufmgr.h
src/include/storage/predicate.h
src/include/storage/procarray.h
src/include/storage/sinvaladt.h
src/include/utils/backend_status.h