Обсуждение: pgsql: Create a "shmem_startup_hook" to be called at the end of shared
pgsql: Create a "shmem_startup_hook" to be called at the end of shared
От
tgl@postgresql.org (Tom Lane)
Дата:
Log Message: ----------- Create a "shmem_startup_hook" to be called at the end of shared memory initialization, to give loadable modules a reasonable place to perform creation of any shared memory areas they need. This is the logical conclusion of our previous creation of RequestAddinShmemSpace() and RequestAddinLWLocks(). We don't need an explicit shmem_shutdown_hook, because the existing on_shmem_exit and on_proc_exit mechanisms serve that need. Also, adjust SubPostmasterMain so that libraries that got loaded into the postmaster will be loaded into all child processes, not only regular backends. This improves consistency with the non-EXEC_BACKEND behavior, and might be necessary for functionality for some types of add-ons. Modified Files: -------------- pgsql/src/backend/postmaster: postmaster.c (r1.568 -> r1.569) (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/postmaster/postmaster.c?r1=1.568&r2=1.569) pgsql/src/backend/storage/ipc: ipci.c (r1.98 -> r1.99) (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/storage/ipc/ipci.c?r1=1.98&r2=1.99) pgsql/src/include/storage: ipc.h (r1.76 -> r1.77) (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/include/storage/ipc.h?r1=1.76&r2=1.77)