summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVadim B. Mikheev1997-10-27 11:52:43 +0000
committerVadim B. Mikheev1997-10-27 11:52:43 +0000
commita2c476b555295177442bca8a9ac1f7da0aac9ac2 (patch)
treefea4bc723415b59a6bcb048f40d55e98e86c6487 /src
parent110ba08a12fc1b3db38864ebd4b0feae5b3657a7 (diff)
Use shared lock when building indices
Diffstat (limited to 'src')
-rw-r--r--src/backend/catalog/index.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/backend/catalog/index.c b/src/backend/catalog/index.c
index 6c391d21079..454a7795cc7 100644
--- a/src/backend/catalog/index.c
+++ b/src/backend/catalog/index.c
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/catalog/index.c,v 1.23 1997/09/18 20:20:14 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/catalog/index.c,v 1.24 1997/10/27 11:52:43 vadim Exp $
*
*
* INTERFACE ROUTINES
@@ -1103,9 +1103,12 @@ index_create(char *heapRelationName,
/* ----------------
* write lock heap to guarantee exclusive access
* ----------------
+ RelationSetLockForWrite(heapRelation);
+ * ^^^^^
+ * Does it have any sense ? - vadim 10/27/97
*/
- RelationSetLockForWrite(heapRelation);
+ RelationSetLockForRead(heapRelation);
/* ----------------
* construct new tuple descriptor