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

Commita3c9ef7

Browse files
committed
I think reindex_index had better get AccessExclusiveLock on the parent
heap, not just ExclusiveLock.
1 parente167510 commita3c9ef7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎src/backend/catalog/index.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/catalog/index.c,v 1.194 2002/09/0301:04:41 tgl Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/catalog/index.c,v 1.195 2002/09/0316:00:02 tgl Exp $
1212
*
1313
*
1414
* INTERFACE ROUTINES
@@ -1818,7 +1818,7 @@ reindex_index(Oid indexId, bool force, bool inplace)
18181818
indexInfo=BuildIndexInfo(iRel->rd_index);
18191819

18201820
/* Open the parent heap relation */
1821-
heapRelation=heap_open(heapId,ExclusiveLock);
1821+
heapRelation=heap_open(heapId,AccessExclusiveLock);
18221822
if (heapRelation==NULL)
18231823
elog(ERROR,"reindex_index: can't open heap relation");
18241824

@@ -1919,8 +1919,8 @@ reindex_relation(Oid relid, bool force)
19191919

19201920
/*
19211921
* Ensure to hold an exclusive lock throughout the transaction. The
1922-
* lock could be less intensivebut now it's AccessExclusiveLock for
1923-
* simplicity.
1922+
* lock could be less intensive(in the non-overwrite path) but now
1923+
*it's AccessExclusiveLock forsimplicity.
19241924
*/
19251925
rel=heap_open(relid,AccessExclusiveLock);
19261926

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp