88 *
99 *
1010 * IDENTIFICATION
11- * $Header: /cvsroot/pgsql/src/backend/catalog/indexing.c,v 1.27 1998/09/01 06:22:42 momjian Exp $
11+ * $Header: /cvsroot/pgsql/src/backend/catalog/indexing.c,v 1.28 1998/09/01 06:51:35 momjian Exp $
1212 *
1313 *-------------------------------------------------------------------------
1414 */
@@ -121,10 +121,8 @@ CatalogIndexInsert(Relation *idescs,
121121
122122for (i = 0 ;i < nIndices ;i ++ )
123123{
124- TupleDesc indexDescriptor ;
125124InsertIndexResult indexRes ;
126125
127- indexDescriptor = RelationGetDescr (idescs [i ]);
128126pgIndexTup = SearchSysCacheTupleCopy (INDEXRELID ,
129127ObjectIdGetDatum (idescs [i ]-> rd_id ),
1301280 ,0 ,0 );
@@ -134,7 +132,7 @@ CatalogIndexInsert(Relation *idescs,
134132/*
135133 * Compute the number of attributes we are indexing upon.
136134 */
137- for (attnumP = ( & pgIndexP -> indkey [ 0 ]) ,natts = 0 ;
135+ for (attnumP = pgIndexP -> indkey ,natts = 0 ;
138136* attnumP != InvalidAttrNumber ;
139137attnumP ++ ,natts ++ )
140138;
@@ -151,7 +149,7 @@ CatalogIndexInsert(Relation *idescs,
151149finfoP = (FuncIndexInfo * )NULL ;
152150
153151FormIndexDatum (natts ,
154- (AttrNumber * )& pgIndexP -> indkey [ 0 ] ,
152+ (AttrNumber * )pgIndexP -> indkey ,
155153heapTuple ,
156154heapDescriptor ,
157155& datum ,