]> granicus.if.org Git - postgresql/commitdiff
Make sure to not handle deactivated system indexes
authorHiroshi Inoue <inoue@tpf.co.jp>
Thu, 14 Dec 2000 07:02:42 +0000 (07:02 +0000)
committerHiroshi Inoue <inoue@tpf.co.jp>
Thu, 14 Dec 2000 07:02:42 +0000 (07:02 +0000)
src/backend/catalog/indexing.c

index 60eae115ec7b12a9d0049910514304d8376e1c30..1e33e8b18255007788cd93d4ed307a94abed6cc4 100644 (file)
@@ -9,7 +9,7 @@
  *
  *
  * IDENTIFICATION
- *       $Header: /cvsroot/pgsql/src/backend/catalog/indexing.c,v 1.74 2000/11/16 22:30:17 tgl Exp $
+ *       $Header: /cvsroot/pgsql/src/backend/catalog/indexing.c,v 1.75 2000/12/14 07:02:42 inoue Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -143,7 +143,7 @@ CatalogIndexInsert(Relation *idescs,
        char            nullv[INDEX_MAX_KEYS];
        int                     i;
 
-       if (IsIgnoringSystemIndexes())
+       if (IsIgnoringSystemIndexes() || (!heapRelation->rd_rel->relhasindex))
                return;
        heapDescriptor = RelationGetDescr(heapRelation);