77 *
88 *
99 * IDENTIFICATION
10- * $Header: /cvsroot/pgsql/src/backend/utils/cache/syscache.c,v 1.45 2000/01/23 03:43:24 tgl Exp $
10+ * $Header: /cvsroot/pgsql/src/backend/utils/cache/syscache.c,v 1.46 2000/01/24 02:12:56 momjian Exp $
1111 *
1212 * NOTES
1313 * These routines allow the parser/planner/executor to perform
@@ -54,7 +54,7 @@ typedef HeapTuple (*ScanFunc) ();
5454Add your new cache to the list in include/utils/syscache.h. Keep
5555the list sorted alphabetically and adjust the cache numbers
5656accordingly.
57-
57+
5858Add your entry to the cacheinfo[] array below. All cache lists are
5959alphabetical, so add it in the proper place. Specify the relation
6060 name, number of arguments, argument names, size of tuple, index lookup
@@ -75,7 +75,7 @@ typedef HeapTuple (*ScanFunc) ();
7575 Finally, any place your relation gets heap_insert() or
7676heap_update calls, include code to do a CatalogIndexInsert() to update
7777the system indexes. The heap_* calls do not update indexes.
78-
78+
7979 bjm 1999/11/22
8080
8181 ---------------------------------------------------------------------------
@@ -360,16 +360,16 @@ NULL,NULL
360360/*ShadowSysidIndex,
361361ShadowSysidIndexScan*/ },
362362{StatisticRelationName ,/* STATRELID */
363- 3 ,
363+ 2 ,
364364{
365365Anum_pg_statistic_starelid ,
366366Anum_pg_statistic_staattnum ,
367- Anum_pg_statistic_staop ,
367+ 0 ,
3683680
369369},
370370offsetof(FormData_pg_statistic ,stacommonval ),
371- StatisticRelidAttnumOpIndex ,
372- (ScanFunc )StatisticRelidAttnumOpIndexScan },
371+ StatisticRelidAttnumIndex ,
372+ (ScanFunc )StatisticRelidAttnumIndexScan },
373373{TypeRelationName ,/* TYPENAME */
3743741 ,
375375{
@@ -520,7 +520,7 @@ SearchSysCacheTuple(int cacheId,/* cache selection code */
520520get_temp_rel_by_username (DatumGetPointer (key1 )))!= NULL )
521521key1 = PointerGetDatum (nontemp_relname );
522522}
523-
523+
524524tp = SearchSysCache (SysCache [cacheId ],key1 ,key2 ,key3 ,key4 );
525525if (!HeapTupleIsValid (tp ))
526526{