Skip to content

Commit a2c476b

Browse files
committed
Use shared lock when building indices
1 parent 110ba08 commit a2c476b

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy