diff options
Diffstat (limited to 'src/include/storage/multilev.h')
-rw-r--r-- | src/include/storage/multilev.h | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/src/include/storage/multilev.h b/src/include/storage/multilev.h index ced76b9f426..7d3a3c983ad 100644 --- a/src/include/storage/multilev.h +++ b/src/include/storage/multilev.h @@ -7,7 +7,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: multilev.h,v 1.11 1998/07/13 16:34:58 momjian Exp $ + * $Id: multilev.h,v 1.12 1998/08/01 15:26:38 vadim Exp $ * *------------------------------------------------------------------------- */ @@ -16,6 +16,24 @@ #include <storage/lmgr.h> +#ifdef LowLevelLocking + +/* DML locks */ +#define RowShareLock 1 /* SELECT FOR UPDATE */ +#define RowExclusiveLock 2 /* INSERT, UPDATE, DELETE */ +#define ShareLock 3 +#define ShareRowExclusiveLock 4 +#define ExclusiveLock 5 + +/* DDL locks */ +#define ObjShareLock 6 +#define ObjExclusiveLock 7 + +/* Special locks */ +#define ExtendLock 8 + +#else + #define READ_LOCK 2 #define WRITE_LOCK 1 @@ -31,6 +49,8 @@ #define EXTEND_LOCK 5 +#endif /* !LowLevelLocking */ + #define SHORT_TERM 1 #define LONG_TERM 2 #define UNLOCK 0 |