Refactor ShmemIndex initialization

Initialize the ShmemIndex hash table in InitShmemAllocator() already,
removing the need for the separate InitShmemIndex() step.

Reviewed-by: Ashutosh Bapat <[email protected]>
Discussion: 
https://www.postgresql.org/message-id/CAExHW5vM1bneLYfg0wGeAa=52uij3z4vkd3aj72x8fw6k3k...@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/6b8238cb6aa76924fa63640fe421c421d2fa5472

Modified Files
--------------
src/backend/storage/ipc/ipci.c  |   8 +--
src/backend/storage/ipc/shmem.c | 143 ++++++++++++++++------------------------
src/include/storage/shmem.h     |   1 -
3 files changed, 56 insertions(+), 96 deletions(-)

Reply via email to