aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/numeric.c
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2021-08-05 14:37:09 -0700
committerAndres Freund <andres@anarazel.de>2021-08-05 15:36:59 -0700
commitb406478b87e2234c0be4ca4105eee3bb466a646b (patch)
treeafe7c717314d513a9c372604d010b53a601763d4 /src/backend/utils/adt/numeric.c
parent0de13bbc47d19c95de132cc85c341fdab079c170 (diff)
downloadpostgresql-b406478b87e2234c0be4ca4105eee3bb466a646b.tar.gz
postgresql-b406478b87e2234c0be4ca4105eee3bb466a646b.zip
process startup: Always call Init[Auxiliary]Process() before BaseInit().
For EXEC_BACKEND InitProcess()/InitAuxiliaryProcess() needs to have been called well before we call BaseInit(), as SubPostmasterMain() needs LWLocks to work. Having the order of initialization differ between platforms makes it unnecessarily hard to understand the system and to add initialization points for new subsystems without a lot of duplication. To be able to change the order, BaseInit() cannot trigger CreateSharedMemoryAndSemaphores() anymore - obviously that needs to have happened before we can call InitProcess(). It seems cleaner to create shared memory explicitly in single user/bootstrap mode anyway. After this change the separation of bufmgr initialization into InitBufferPoolAccess() / InitBufferPoolBackend() is not meaningful anymore so the latter is removed. Author: Andres Freund <andres@anarazel.de> Reviewed-By: Kyotaro Horiguchi <horikyota.ntt@gmail.com> Discussion: https://postgr.es/m/20210802164124.ufo5buo4apl6yuvs@alap3.anarazel.de
Diffstat (limited to 'src/backend/utils/adt/numeric.c')
0 files changed, 0 insertions, 0 deletions