|
7 | 7 | * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
|
8 | 8 | * Portions Copyright (c) 1994, Regents of the University of California
|
9 | 9 | *
|
10 |
| - * $Id: lock.h,v 1.46 2001/02/2318:28:46 momjian Exp $ |
| 10 | + * $Id: lock.h,v 1.47 2001/02/2319:24:06 momjian Exp $ |
11 | 11 | *
|
12 | 12 | *-------------------------------------------------------------------------
|
13 | 13 | */
|
@@ -76,6 +76,14 @@ typedef int LOCKMETHOD;
|
76 | 76 | #defineUSER_LOCKMETHOD2
|
77 | 77 | #defineMIN_LOCKMETHODDEFAULT_LOCKMETHOD
|
78 | 78 |
|
| 79 | +/* There is normally only one lock method, the default one. |
| 80 | + * If user locks are enabled, an additional lock method is present |
| 81 | + * |
| 82 | + * LOCKMETHODCTL and LOCKMETHODTABLE are split because the first lives |
| 83 | + * in shared memory. This is because it contains a spinlock. |
| 84 | + * LOCKMETHODTABLE exists in private memory. Both are created by the |
| 85 | + * postmaster and should be the same in all backends |
| 86 | + */ |
79 | 87 |
|
80 | 88 | /*
|
81 | 89 | * This is the control structure for a lock table.It
|
|