summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2001-02-23 19:24:06 +0000
committerBruce Momjian <bruce@momjian.us>2001-02-23 19:24:06 +0000
commita37666c2ec24db97d4f7cf30a24653608f7ff487 (patch)
tree731e67d865252c0d6144004a1b80f51951d89a3d /src
parent817646515015c74160606d29ac5d945a37af0aca (diff)
downloadpostgresql-a37666c2ec24db97d4f7cf30a24653608f7ff487.tar.gz
Update comments on locks.
Diffstat (limited to 'src')
-rw-r--r--src/include/storage/lock.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/include/storage/lock.h b/src/include/storage/lock.h
index 653ca9936a..af07e88935 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.46 2001/02/23 18:28:46 momjian Exp $
+ * $Id: lock.h,v 1.47 2001/02/23 19:24:06 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -76,6 +76,14 @@ typedef int LOCKMETHOD;
#define USER_LOCKMETHOD 2
#define MIN_LOCKMETHOD DEFAULT_LOCKMETHOD
+/* There is normally only one lock method, the default one.
+ * If user locks are enabled, an additional lock method is present
+ *
+ * LOCKMETHODCTL and LOCKMETHODTABLE are split because the first lives
+ * in shared memory. This is because it contains a spinlock.
+ * LOCKMETHODTABLE exists in private memory. Both are created by the
+ * postmaster and should be the same in all backends
+ */
/*
* This is the control structure for a lock table. It