summaryrefslogtreecommitdiff
path: root/src/include/storage/lmgr.h
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2001-07-09 22:18:34 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2001-07-09 22:18:34 +0000
commit4fe42dfbc3bafa0ea615239d716a6b37d67da253 (patch)
tree38dae72295452dbaf3353007a5c663100fd4cb06 /src/include/storage/lmgr.h
parent8902f49abb37f16582593f3533bda62fb65beec1 (diff)
downloadpostgresql-4fe42dfbc3bafa0ea615239d716a6b37d67da253.tar.gz
Add SHARE UPDATE EXCLUSIVE lock mode, coming soon to a VACUUM near you.
Name chosen per pghackers discussion around 6/22/01.
Diffstat (limited to 'src/include/storage/lmgr.h')
-rw-r--r--src/include/storage/lmgr.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/include/storage/lmgr.h b/src/include/storage/lmgr.h
index c279ef63f2..1fb490e6d6 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 */
/*