8
8
*
9
9
*
10
10
* 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 $
12
12
*
13
13
*-------------------------------------------------------------------------
14
14
*/
@@ -121,10 +121,8 @@ CatalogIndexInsert(Relation *idescs,
121
121
122
122
for (i = 0 ; i < nIndices ; i ++ )
123
123
{
124
- TupleDesc indexDescriptor ;
125
124
InsertIndexResult indexRes ;
126
125
127
- indexDescriptor = RelationGetDescr (idescs [i ]);
128
126
pgIndexTup = SearchSysCacheTupleCopy (INDEXRELID ,
129
127
ObjectIdGetDatum (idescs [i ]-> rd_id ),
130
128
0 , 0 , 0 );
@@ -134,7 +132,7 @@ CatalogIndexInsert(Relation *idescs,
134
132
/*
135
133
* Compute the number of attributes we are indexing upon.
136
134
*/
137
- for (attnumP = ( & pgIndexP -> indkey [ 0 ]) , natts = 0 ;
135
+ for (attnumP = pgIndexP -> indkey , natts = 0 ;
138
136
* attnumP != InvalidAttrNumber ;
139
137
attnumP ++ , natts ++ )
140
138
;
@@ -151,7 +149,7 @@ CatalogIndexInsert(Relation *idescs,
151
149
finfoP = (FuncIndexInfo * ) NULL ;
152
150
153
151
FormIndexDatum (natts ,
154
- (AttrNumber * ) & pgIndexP -> indkey [ 0 ] ,
152
+ (AttrNumber * ) pgIndexP -> indkey ,
155
153
heapTuple ,
156
154
heapDescriptor ,
157
155
& datum ,
0 commit comments