aboutsummaryrefslogtreecommitdiff
path: root/src/include/storage/proc.h
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2024-12-28 16:21:54 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2024-12-28 16:21:54 -0500
commit508a97ee4984597ea60c383f52adefd47178189f (patch)
tree544b2f40f0fd76f4fd910c3dd2cbaef2397c15b4 /src/include/storage/proc.h
parent34486b6092e700089d22586df211c4e8b0412136 (diff)
downloadpostgresql-508a97ee4984597ea60c383f52adefd47178189f.tar.gz
postgresql-508a97ee4984597ea60c383f52adefd47178189f.zip
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
Diffstat (limited to 'src/include/storage/proc.h')
-rw-r--r--src/include/storage/proc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/storage/proc.h b/src/include/storage/proc.h
index b20f9989a3f..0b1fa61310f 100644
--- a/src/include/storage/proc.h
+++ b/src/include/storage/proc.h
@@ -149,7 +149,7 @@ typedef enum
* but its myProcLocks[] lists are valid.
*
* We allow many fields of this struct to be accessed without locks, such as
- * delayChkptFlags and isBackgroundWorker. However, keep in mind that writing
+ * delayChkptFlags and isRegularBackend. However, keep in mind that writing
* mirrored ones (see below) requires holding ProcArrayLock or XidGenLock in
* at least shared mode, so that pgxactoff does not change concurrently.
*
@@ -216,7 +216,7 @@ struct PGPROC
Oid tempNamespaceId; /* OID of temp schema this backend is
* using */
- bool isBackgroundWorker; /* true if not a regular backend. */
+ bool isRegularBackend; /* true if it's a regular backend. */
/*
* While in hot standby mode, shows that a conflict signal has been sent