pgsql: Make BackgroundWorkerList doubly-linked - Mailing list pgsql-committers

From Heikki Linnakangas
Subject pgsql: Make BackgroundWorkerList doubly-linked
Date
Msg-id E1scWpw-003Tdm-3x@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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(-)


pgsql-committers by date:

Previous
From: Nathan Bossart
Date:
Subject: pgsql: doc: Standardize use of dashes in references to CRC and SHA.
Next
From: Alvaro Herrera
Date:
Subject: pgsql: libpq: Trace StartupMessage/SSLRequest/GSSENCRequest correctly