diff options
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/storage/lmgr.h | 15 | ||||
-rw-r--r-- | src/include/storage/lock.h | 6 |
2 files changed, 11 insertions, 10 deletions
diff --git a/src/include/storage/lmgr.h b/src/include/storage/lmgr.h index c279ef63f2a..1fb490e6d69 100644 --- a/src/include/storage/lmgr.h +++ b/src/include/storage/lmgr.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: lmgr.h,v 1.31 2001/06/22 00:04:59 tgl Exp $ + * $Id: lmgr.h,v 1.32 2001/07/09 22:18:34 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -25,13 +25,14 @@ #define AccessShareLock 1 /* SELECT */ #define RowShareLock 2 /* SELECT FOR UPDATE */ #define RowExclusiveLock 3 /* INSERT, UPDATE, DELETE */ -#define ShareLock 4 /* CREATE INDEX */ -#define ShareRowExclusiveLock 5 /* like EXCLUSIVE MODE, allows - * SHARE ROW */ -#define ExclusiveLock 6 /* blocks ROW SHARE/SELECT...FOR +#define ShareUpdateExclusiveLock 4 /* VACUUM (non-FULL) */ +#define ShareLock 5 /* CREATE INDEX */ +#define ShareRowExclusiveLock 6 /* like EXCLUSIVE MODE, but allows + * ROW SHARE */ +#define ExclusiveLock 7 /* blocks ROW SHARE/SELECT...FOR * UPDATE */ -#define AccessExclusiveLock 7 /* ALTER TABLE, DROP TABLE, - * VACUUM, and unqualified LOCK +#define AccessExclusiveLock 8 /* ALTER TABLE, DROP TABLE, + * VACUUM FULL, and unqualified LOCK * TABLE */ /* diff --git a/src/include/storage/lock.h b/src/include/storage/lock.h index 30a13649e43..1010e6760b3 100644 --- a/src/include/storage/lock.h +++ b/src/include/storage/lock.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: lock.h,v 1.50 2001/06/27 23:31:39 tgl Exp $ + * $Id: lock.h,v 1.51 2001/07/09 22:18:34 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -49,7 +49,7 @@ typedef int LOCKMODE; typedef int LOCKMETHOD; /* MAX_LOCKMODES cannot be larger than the # of bits in LOCKMASK */ -#define MAX_LOCKMODES 8 +#define MAX_LOCKMODES 10 /* * MAX_LOCK_METHODS corresponds to the number of spin locks allocated in @@ -91,7 +91,7 @@ typedef int LOCKMETHOD; * * prio -- each lockmode has a priority, so, for example, waiting * writers can be given priority over readers (to avoid - * starvation). + * starvation). XXX this field is not actually used at present! * * masterlock -- synchronizes access to the table */ |