Skip to content

Register built-in dynamic managers in EXEC_BACKEND child (PSP18)#602

Open
dutow wants to merge 1 commit into
percona:PSP_REL_18_STABLEfrom
dutow:pr-execbackend-smgr-18
Open

Register built-in dynamic managers in EXEC_BACKEND child (PSP18)#602
dutow wants to merge 1 commit into
percona:PSP_REL_18_STABLEfrom
dutow:pr-execbackend-smgr-18

Conversation

@dutow

@dutow dutow commented Jun 15, 2026

Copy link
Copy Markdown
Collaborator

Under EXEC_BACKEND the exec'd child starts with an empty (palloc'd) smgr table; register_builtin_dynamic_managers() is only called from the postmaster (inherited via fork) and InitStandaloneProcess. Re-run it in SubPostmasterMain, before process_shared_preload_libraries(), mirroring the postmaster so extensions can still register their own smgrs.

Under EXEC_BACKEND the exec'd child starts with an empty (palloc'd) smgr
table; register_builtin_dynamic_managers() is only called from the
postmaster (inherited via fork) and InitStandaloneProcess. Re-run it in
SubPostmasterMain, before process_shared_preload_libraries(), mirroring
the postmaster so extensions can still register their own smgrs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant