PostgreSQL Source Code: src/include/storage/lockdefs.h Source File (original) (raw)
Go to the documentation of this file.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17#ifndef LOCKDEFS_H_
18#define LOCKDEFS_H_
19
20
21
22
23
24
27
28
29
30
31
32
33
34#define NoLock 0
35
36#define AccessShareLock 1
37#define RowShareLock 2
38#define RowExclusiveLock 3
39#define ShareUpdateExclusiveLock 4
41#define ShareLock 5
42#define ShareRowExclusiveLock 6
44#define ExclusiveLock 7
45#define AccessExclusiveLock 8
46
47
48#define MaxLockMode 8
49
50
51#define InplaceUpdateTupleLock ExclusiveLock
52
60
61#endif
struct xl_standby_lock xl_standby_lock