Refactor shmem initialization code in predicate.c
This is in preparation to convert it to use the new shmem allocation
functions, making the next commit that does that smaller. This inlines
SerialInit() to the caller, and moves all the initialization steps
within PredicateLockShmemInit() to happen after all the
ShmemInit{Struct|Hash}() calls.
Reviewed-by: Ashutosh Bapat <[email protected]>
Reviewed-by: Matthias van de Meent <[email protected]>
Reviewed-by: Daniel Gustafsson <[email protected]>
Discussion:
https://www.postgresql.org/message-id/CAExHW5vM1bneLYfg0wGeAa=52uij3z4vkd3aj72x8fw6k3k...@mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/4c9eca5afea0e8623e39f6a778412d4da687f659
Modified Files
--------------
src/backend/storage/lmgr/predicate.c | 217 ++++++++++++++++-------------------
1 file changed, 98 insertions(+), 119 deletions(-)