aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2022-10-11 13:08:17 -0400
committerBruce Momjian <bruce@momjian.us>2022-10-11 13:08:17 -0400
commit434c6cdf0cc9b4ee0d3c7fd2351d751fecdef8dc (patch)
treee22882f6f58469a8370f70b3da6d3349689f2693
parent776e1c8a5d1494e345e5e1b16a5eba5e98aaddca (diff)
downloadpostgresql-434c6cdf0cc9b4ee0d3c7fd2351d751fecdef8dc.tar.gz
postgresql-434c6cdf0cc9b4ee0d3c7fd2351d751fecdef8dc.zip
C comment: explain procArray->pgprocnos[]
Reported-by: Aleksander Alekseev Discussion: https://postgr.es/m/CAJ7c6TOs9Dh3KNR2kiQJ3Ow0=TBucL_57DAbm--2p8w5x_8YXQ@mail.gmail.com Author: Aleksander Alekseev Backpatch-through: master
-rw-r--r--src/include/storage/proc.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/include/storage/proc.h b/src/include/storage/proc.h
index 91824b46918..ed874459b38 100644
--- a/src/include/storage/proc.h
+++ b/src/include/storage/proc.h
@@ -193,7 +193,11 @@ struct PGPROC
int pgxactoff; /* offset into various ProcGlobal->arrays with
* data mirrored from this PGPROC */
- int pgprocno;
+
+ int pgprocno; /* Number of this PGPROC in
+ * ProcGlobal->allProcs array. This is set
+ * once by InitProcGlobal().
+ * ProcGlobal->allProcs[n].pgprocno == n */
/* These fields are zero while a backend is still starting up: */
BackendId backendId; /* This backend's backend ID (if assigned) */