aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHiroshi Inoue <inoue@tpf.co.jp>2001-10-24 09:28:31 +0000
committerHiroshi Inoue <inoue@tpf.co.jp>2001-10-24 09:28:31 +0000
commit04503315269ab97136f9bda921c7f25824b062fe (patch)
tree8e288d1427abc7180aea1a0f6132321bf7c5926a /src
parentf8aa02eb85eeebc14c624ff50a6ed37c955d72f1 (diff)
downloadpostgresql-04503315269ab97136f9bda921c7f25824b062fe.tar.gz
postgresql-04503315269ab97136f9bda921c7f25824b062fe.zip
Allow concurrent index creation for the same table.
Diffstat (limited to 'src')
-rw-r--r--src/backend/commands/indexcmds.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/commands/indexcmds.c b/src/backend/commands/indexcmds.c
index aaf0630a2a7..a02f399f12e 100644
--- a/src/backend/commands/indexcmds.c
+++ b/src/backend/commands/indexcmds.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/commands/indexcmds.c,v 1.58 2001/10/04 22:06:46 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/commands/indexcmds.c,v 1.59 2001/10/24 09:28:31 inoue Exp $
*
*-------------------------------------------------------------------------
*/
@@ -130,7 +130,7 @@ DefineIndex(char *heapRelationName,
CheckPredicate(cnfPred, rangetable, relationId);
}
- if (!IsBootstrapProcessingMode() && !IndexesAreActive(relationId, false))
+ if (!IsBootstrapProcessingMode() && IsSystemRelationName(heapRelationName) && !IndexesAreActive(relationId, false))
elog(ERROR, "Existing indexes are inactive. REINDEX first");
/*