Move code for backend startup to separate file
Heikki Linnakangas <heikki.linnakangas@iki.fi>
Move code for backend startup to separate file This is code that runs in the backend process after forking, rather than postmaster. Move it out of postmaster.c for clarity. Reviewed-by: Tristan Partin, Andres Freund Discussion: https://www.postgresql.org/message-id/7a59b073-5b5b-151e-7ed3-8b01ff7ce9ef@iki.fi
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/postmaster/launch_backend.c | modified | +1 −0 |
| src/backend/postmaster/postmaster.c | modified | +4 −758 |
| src/backend/tcop/backend_startup.c | added | +778 −0 |
| src/backend/tcop/Makefile | modified | +1 −0 |
| src/backend/tcop/meson.build | modified | +1 −0 |
| src/include/postmaster/postmaster.h | modified | +3 −1 |
| src/include/tcop/backend_startup.h | added | +41 −0 |
Discussion
- Refactoring backend fork+exec code 63 messages · 2023-06-18 → 2024-07-03