| /*------------------------------------------------------------------------- | |
| * | |
| * lockdefs.h | |
| * Frontend exposed parts of postgres' low level lock mechanism | |
| * | |
| * The split between lockdefs.h and lock.h is not very principled. This file | |
| * contains definition that have to (indirectly) be available when included by | |
| * FRONTEND code. | |
| * | |
| * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group | |
| * Portions Copyright (c) 1994, Regents of the University of California | |
| * | |
| * src/include/storage/lockdefs.h | |
| * | |
| *------------------------------------------------------------------------- | |
| */ | |
| /* | |
| * LOCKMODE is an integer (1..N) indicating a lock type. LOCKMASK is a bit | |
| * mask indicating a set of held or requested lock types (the bit 1<<mode | |
| * corresponds to a particular lock mode). | |
| */ | |
| typedef int LOCKMASK; | |
| typedef int LOCKMODE; | |
| /* | |
| * These are the valid values of type LOCKMODE for all the standard lock | |
| * methods (both DEFAULT and USER). | |
| */ | |
| /* NoLock is not a lock mode, but a flag value meaning "don't get a lock" */ | |
| /* WAL representation of an AccessExclusiveLock on a table */ | |
| typedef struct xl_standby_lock | |
| { | |
| TransactionId xid; /* xid of holder of AccessExclusiveLock */ | |
| Oid dbOid; /* DB containing table */ | |
| Oid relOid; /* OID of table */ | |
| } xl_standby_lock; | |