diff options
author | Hiroshi Inoue <inoue@tpf.co.jp> | 2000-12-14 07:02:42 +0000 |
---|---|---|
committer | Hiroshi Inoue <inoue@tpf.co.jp> | 2000-12-14 07:02:42 +0000 |
commit | db11f4382abad09d42e784c1fa19dfbcd68038ac (patch) | |
tree | 57204f56e06ef7660646742f416a03a4a2ef218e | |
parent | 468a970409a74fd1b44c4c5c0b71e0d4782c02cd (diff) | |
download | postgresql-db11f4382abad09d42e784c1fa19dfbcd68038ac.tar.gz postgresql-db11f4382abad09d42e784c1fa19dfbcd68038ac.zip |
Make sure to not handle deactivated system indexes
-rw-r--r-- | src/backend/catalog/indexing.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/catalog/indexing.c b/src/backend/catalog/indexing.c index 60eae115ec7..1e33e8b1825 100644 --- a/src/backend/catalog/indexing.c +++ b/src/backend/catalog/indexing.c @@ -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); |