From 19b41f58ebf088a8d2a14fd885dff716e20ec73b Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Tue, 1 Sep 1998 06:51:35 +0000 Subject: [PATCH] cleanups of indexing.c --- src/backend/catalog/indexing.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/backend/catalog/indexing.c b/src/backend/catalog/indexing.c index 75c45c1534..a68aefc7ab 100644 --- a/src/backend/catalog/indexing.c +++ b/src/backend/catalog/indexing.c @@ -121,10 +121,8 @@ CatalogIndexInsert(Relation *idescs, for (i = 0; i < nIndices; i++) { - TupleDesc indexDescriptor; InsertIndexResult indexRes; - indexDescriptor = RelationGetDescr(idescs[i]); pgIndexTup = SearchSysCacheTupleCopy(INDEXRELID, ObjectIdGetDatum(idescs[i]->rd_id), 0, 0, 0); @@ -134,7 +132,7 @@ CatalogIndexInsert(Relation *idescs, /* * Compute the number of attributes we are indexing upon. */ - for (attnumP = (&pgIndexP->indkey[0]), natts = 0; + for (attnumP = pgIndexP->indkey, natts = 0; *attnumP != InvalidAttrNumber; attnumP++, natts++) ; @@ -151,7 +149,7 @@ CatalogIndexInsert(Relation *idescs, finfoP = (FuncIndexInfo *) NULL; FormIndexDatum(natts, - (AttrNumber *) &pgIndexP->indkey[0], + (AttrNumber *) pgIndexP->indkey, heapTuple, heapDescriptor, &datum, -- 2.39.5