pgsql: Replace PGPROC.isBackgroundWorker with isRegularBackend.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Replace PGPROC.isBackgroundWorker with isRegularBackend.
Date: 2024-12-28 21:22:00
Message-ID: E1tReFz-001qSI-Kx@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Replace PGPROC.isBackgroundWorker with isRegularBackend.

Commit 34486b609 effectively redefined isBackgroundWorker as meaning
"not a regular backend", whereas before it had the narrower
meaning of AmBackgroundWorkerProcess(). For clarity, rename the
field to isRegularBackend and invert its sense.

Discussion: https://postgr.es/m/1808397.1735156190@sss.pgh.pa.us

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/508a97ee4984597ea60c383f52adefd47178189f

Modified Files
--------------
src/backend/access/transam/twophase.c | 2 +-
src/backend/storage/ipc/procarray.c | 8 ++++----
src/backend/storage/lmgr/proc.c | 4 ++--
src/include/storage/proc.h | 4 ++--
4 files changed, 9 insertions(+), 9 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message David Rowley 2024-12-29 10:58:05 pgsql: Fix overly large values/nulls arrays
Previous Message Tom Lane 2024-12-28 21:09:10 pgsql: Exclude parallel workers from connection privilege/limit checks.