7
7
*
8
8
*
9
9
* 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 $
11
11
*
12
12
* NOTES
13
13
* These routines allow the parser/planner/executor to perform
@@ -54,7 +54,7 @@ typedef HeapTuple (*ScanFunc) ();
54
54
Add your new cache to the list in include/utils/syscache.h. Keep
55
55
the list sorted alphabetically and adjust the cache numbers
56
56
accordingly.
57
-
57
+
58
58
Add your entry to the cacheinfo[] array below. All cache lists are
59
59
alphabetical, so add it in the proper place. Specify the relation
60
60
name, number of arguments, argument names, size of tuple, index lookup
@@ -75,7 +75,7 @@ typedef HeapTuple (*ScanFunc) ();
75
75
Finally, any place your relation gets heap_insert() or
76
76
heap_update calls, include code to do a CatalogIndexInsert() to update
77
77
the system indexes. The heap_* calls do not update indexes.
78
-
78
+
79
79
bjm 1999/11/22
80
80
81
81
---------------------------------------------------------------------------
@@ -360,16 +360,16 @@ NULL,NULL
360
360
/*ShadowSysidIndex,
361
361
ShadowSysidIndexScan*/ },
362
362
{StatisticRelationName ,/* STATRELID */
363
- 3 ,
363
+ 2 ,
364
364
{
365
365
Anum_pg_statistic_starelid ,
366
366
Anum_pg_statistic_staattnum ,
367
- Anum_pg_statistic_staop ,
367
+ 0 ,
368
368
0
369
369
},
370
370
offsetof(FormData_pg_statistic ,stacommonval ),
371
- StatisticRelidAttnumOpIndex ,
372
- (ScanFunc )StatisticRelidAttnumOpIndexScan },
371
+ StatisticRelidAttnumIndex ,
372
+ (ScanFunc )StatisticRelidAttnumIndexScan },
373
373
{TypeRelationName ,/* TYPENAME */
374
374
1 ,
375
375
{
@@ -520,7 +520,7 @@ SearchSysCacheTuple(int cacheId,/* cache selection code */
520
520
get_temp_rel_by_username (DatumGetPointer (key1 )))!= NULL )
521
521
key1 = PointerGetDatum (nontemp_relname );
522
522
}
523
-
523
+
524
524
tp = SearchSysCache (SysCache [cacheId ],key1 ,key2 ,key3 ,key4 );
525
525
if (!HeapTupleIsValid (tp ))
526
526
{