Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit434c6cd

Browse files
committed
C comment: explain procArray->pgprocnos[]
Reported-by: Aleksander AlekseevDiscussion:https://postgr.es/m/CAJ7c6TOs9Dh3KNR2kiQJ3Ow0=TBucL_57DAbm--2p8w5x_8YXQ@mail.gmail.comAuthor: Aleksander AlekseevBackpatch-through: master
1 parent776e1c8 commit434c6cd

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
intpgxactoff;/* offset into various ProcGlobal->arrays with
195195
* data mirrored from this PGPROC */
196-
intpgprocno;
196+
197+
intpgprocno;/* 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
BackendIdbackendId;/* This backend's backend ID (if assigned) */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp