1 # Some commonly-used locks have predefined positions within MainLWLockArray;
2 # these are defined here. If you add a lock, add it to the end to avoid
3 # renumbering the existing locks; if you remove a lock, consider leaving a gap
4 # in the numbering sequence for the benefit of DTrace and other external
5 # debugging scripts. Also, do not forget to update the section
6 # WaitEventLWLock of src/backend/utils/activity/wait_event_names.txt.
8 # 0 is available; was formerly BufFreelistLock
18 # 10 was CheckpointLock
20 # 12 was SubtransSLRULock
22 # 14 was MultiXactOffsetSLRULock
23 # 15 was MultiXactMemberSLRULock
25 CheckpointerCommLock 17
27 TablespaceCreateLock 19
31 AutovacuumScheduleLock 23
33 RelationMappingLock 25
34 #26 was NotifySLRULock
36 SerializableXactHashLock 28
37 SerializableFinishedListLock 29
38 SerializablePredicateListLock 30
39 # 31 was SerialSLRULock
41 BackgroundWorkerLock 33
42 DynamicSharedMemoryControlLock 34
44 ReplicationSlotAllocationLock 36
45 ReplicationSlotControlLock 37
46 #38 was CommitTsSLRULock
48 ReplicationOriginLock 40
49 MultiXactTruncationLock 41
50 # 42 was OldSnapshotTimeMapLock
51 LogicalRepWorkerLock 43
53 # 45 was XactTruncationLock until removal of BackendRandomLock
54 WrapLimitsVacuumLock 46
55 NotifyQueueTailLock 47
56 WaitEventExtensionLock 48