Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/backend/postmaster/launch_backend.c
Original file line number Diff line number Diff line change
Expand Up @@ -695,6 +695,15 @@ SubPostmasterMain(int argc, char *argv[])
*/
LocalProcessControlFile(false);

/*
* Re-register built-in dynamic managers (e.g. md smgr). On fork-based
* platforms the child inherits the postmaster's already-populated smgr
* table; under EXEC_BACKEND the child starts with an empty table, so we
* must re-run registration. Must happen before shared_preload_libraries
* so extensions can still register their own smgrs from _PG_init().
*/
register_builtin_dynamic_managers();

/*
* Reload any libraries that were preloaded by the postmaster. Since we
* exec'd this process, those libraries didn't come along with us; but we
Expand Down