diff options
Diffstat (limited to 'src/include/storage/proc.h')
-rw-r--r-- | src/include/storage/proc.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/include/storage/proc.h b/src/include/storage/proc.h index 1067f58f51b..00bb244340a 100644 --- a/src/include/storage/proc.h +++ b/src/include/storage/proc.h @@ -98,6 +98,11 @@ typedef enum * The semaphore and lock-activity fields in a prepared-xact PGPROC are unused, * but its myProcLocks[] lists are valid. * + * We allow many fields of this struct to be accessed without locks, such as + * statusFlags or delayChkpt. 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. + * * Mirrored fields: * * Some fields in PGPROC (see "mirrored in ..." comment) are mirrored into an |