Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita37666c

Browse files
committed
Update comments on locks.
1 parent8176465 commita37666c

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

‎src/include/storage/lock.h

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
88
* Portions Copyright (c) 1994, Regents of the University of California
99
*
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 $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -76,6 +76,14 @@ typedef int LOCKMETHOD;
7676
#defineUSER_LOCKMETHOD2
7777
#defineMIN_LOCKMETHODDEFAULT_LOCKMETHOD
7878

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+
*/
7987

8088
/*
8189
* This is the control structure for a lock table.It

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp