From: | Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Make BackgroundWorkerList doubly-linked |
Date: | 2024-08-09 21:07:48 |
Message-ID: | E1scWpw-003Tdm-3x@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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(dot)munro(at)gmail(dot)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(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Alvaro Herrera | 2024-08-09 21:56:30 | pgsql: libpq: Trace StartupMessage/SSLRequest/GSSENCRequest correctly |
Previous Message | Nathan Bossart | 2024-08-09 18:17:02 | pgsql: doc: Standardize use of dashes in references to CRC and SHA. |