Make BackgroundWorkerList doubly-linked
Heikki Linnakangas <heikki.linnakangas@iki.fi>
Make BackgroundWorkerList doubly-linked This allows ForgetBackgroundWorker() and ReportBackgroundWorkerExit() to take a RegisteredBgWorker pointer as argument, rather than a list iterator. That feels a little more natural. But more importantly, this paves the way for more refactoring in the next commit. Reviewed-by: Thomas Munro <thomas.munro@gmail.com> Discussion: https://www.postgresql.org/message-id/835232c0-a5f7-4f20-b95b-5b56ba57d741@iki.fi
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/postmaster/bgworker.c | modified | +29 −33 |
| src/backend/postmaster/postmaster.c | modified | +20 −20 |
| src/include/postmaster/bgworker_internals.h | modified | +5 −5 |
Discussion
- Refactoring postmaster's code to cleanup after child exit 47 messages · 2024-07-06 → 2026-07-07