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

Commita2c476b

Browse files
committed
Use shared lock when building indices
1 parent110ba08 commita2c476b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

‎src/backend/catalog/index.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/catalog/index.c,v 1.23 1997/09/18 20:20:14 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/catalog/index.c,v 1.24 1997/10/27 11:52:43 vadim Exp $
1111
*
1212
*
1313
* INTERFACE ROUTINES
@@ -1103,9 +1103,12 @@ index_create(char *heapRelationName,
11031103
/* ----------------
11041104
* write lock heap to guarantee exclusive access
11051105
* ----------------
1106+
RelationSetLockForWrite(heapRelation);
1107+
* ^^^^^
1108+
* Does it have any sense ?- vadim 10/27/97
11061109
*/
11071110

1108-
RelationSetLockForWrite(heapRelation);
1111+
RelationSetLockForRead(heapRelation);
11091112

11101113
/* ----------------
11111114
* construct new tuple descriptor

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp