*
*
* 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 $
*
*-------------------------------------------------------------------------
*/
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);
/*
* 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++)
;
finfoP = (FuncIndexInfo *) NULL;
FormIndexDatum(natts,
- (AttrNumber *) &pgIndexP->indkey[0],
+ (AttrNumber *) pgIndexP->indkey,
heapTuple,
heapDescriptor,
&datum,