From: Heikki Linnakangas <heikki.linnakangas@iki.fi>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Make BackgroundWorkerList doubly-linked
Date: Fri, 09 Aug 2024 21:07:48 +0000
Message-ID: <E1scWpw-003Tdm-3x@gemulon.postgresql.org> (raw)
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
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/b43100fa71d7f21751b0b1b9b84833be95336386
Modified Files
--------------
src/backend/postmaster/bgworker.c | 62 ++++++++++++++---------------
src/backend/postmaster/postmaster.c | 40 +++++++++----------
src/include/postmaster/bgworker_internals.h | 10 ++---
3 files changed, 54 insertions(+), 58 deletions(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-committers@postgresql.org
Cc: heikki.linnakangas@iki.fi, pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Make BackgroundWorkerList doubly-linked
In-Reply-To: <E1scWpw-003Tdm-3x@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox