diff options
author | Bruce Momjian <bruce@momjian.us> | 1998-09-01 06:51:35 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 1998-09-01 06:51:35 +0000 |
commit | 0f6b004ad2bc5876d1da530f76cc44d337708b72 (patch) | |
tree | 6038c6bd43b08b928bad49780cf3a5ccf3037b16 /src | |
parent | 4b9e21bbc290ea99a8d1beb41d28aa256294bc8c (diff) |
cleanups of indexing.c
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/catalog/indexing.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/backend/catalog/indexing.c b/src/backend/catalog/indexing.c index c77636bca8b..5fbaffd2a6c 100644 --- a/src/backend/catalog/indexing.c +++ b/src/backend/catalog/indexing.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/catalog/indexing.c,v 1.27 1998/09/01 06:22:42 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/catalog/indexing.c,v 1.28 1998/09/01 06:51:35 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -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, |