Rename StartBackgroundWorker() to BackgroundWorkerMain().
Heikki Linnakangas <heikki.linnakangas@iki.fi>
Rename StartBackgroundWorker() to BackgroundWorkerMain(). The comment claimed that it is "called from postmaster", but it is actually called in the child process, pretty early in the process initialization. I guess you could interpret "called from postmaster" to mean that, but it seems wrong to me. Rename the function to be consistent with other functions with similar role. Reviewed-by: Thomas Munro Discussion: https://www.postgresql.org/message-id/4f95c1fc-ad3c-7974-3a8c-6faa3931804c@iki.fi
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/postmaster/bgworker.c | modified | +2 −5 |
| src/backend/postmaster/postmaster.c | modified | +2 −2 |
| src/include/postmaster/bgworker_internals.h | modified | +2 −2 |
Discussion
- Checks in RegisterBackgroundWorker.() 6 messages · 2023-08-24 → 2023-10-09