aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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) */