pgsql: Create a "shmem_startup_hook" to be called at the end of shared - Mailing list pgsql-committers

From tgl@postgresql.org (Tom Lane)
Subject pgsql: Create a "shmem_startup_hook" to be called at the end of shared
Date
Msg-id 20090103170839.2E958754A03@cvs.postgresql.org
Whole thread Raw
List pgsql-committers
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)

pgsql-committers by date:

Previous
From: achernow@pgfoundry.org (User Achernow)
Date:
Subject: libpqtypes - libpqtypes: Update copyrights in source files
Next
From: joe@postgresql.org (Joe Conway)
Date:
Subject: pgsql: Fix bug per Oleksiy Shchukin - 2nd argument for