Allow concurrent index creation for the same table.
authorHiroshi Inoue
Wed, 24 Oct 2001 09:28:31 +0000 (09:28 +0000)
committerHiroshi Inoue
Wed, 24 Oct 2001 09:28:31 +0000 (09:28 +0000)
src/backend/commands/indexcmds.c

index aaf0630a2a7af7184d12b20e2d6fa0a9b2541136..a02f399f12e9f039a687bff8f5515c8be9ef0967 100644 (file)
@@ -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");
 
    /*