pgsql: Create a "shmem_startup_hook" to be called at the end of shared

Поиск
Список
Период
Сортировка
От tgl@postgresql.org (Tom Lane)
Тема pgsql: Create a "shmem_startup_hook" to be called at the end of shared
Дата
Msg-id 20090103170839.2E958754A03@cvs.postgresql.org
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: achernow@pgfoundry.org (User Achernow)
Дата:
Сообщение: libpqtypes - libpqtypes: Update copyrights in source files
Следующее
От: joe@postgresql.org (Joe Conway)
Дата:
Сообщение: pgsql: Fix bug per Oleksiy Shchukin - 2nd argument for