8000 C comment: explain procArray->pgprocnos[] · postgres/postgres@434c6cd · GitHub
[go: up one dir, main page]

Skip to content

Commit 434c6cd

Browse files
committed
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
1 parent 776e1c8 commit 434c6cd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/include/storage/proc.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,11 @@ struct PGPROC
193193

194194
int pgxactoff; /* offset into various ProcGlobal->arrays with
195195
* data mirrored from this PGPROC */
196-
int pgprocno;
196+
197+
int pgprocno; /* Number of this PGPROC in
198+
* ProcGlobal->allProcs array. This is set
199+
* once by InitProcGlobal().
200+
* ProcGlobal->allProcs[n].pgprocno == n */
197201

198202
/* These fields are zero while a backend is still starting up: */
199203
BackendId backendId; /* This backend's backend ID (if assigned) */

0 commit comments

Comments
 (0)
0