Make BackgroundWorkerList doubly-linked

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: b43100fa71d7f21751b0b1b9b84833be95336386
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2024-08-09T19:44:20Z
Releases: 18.0
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

Discussion