diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2000-06-17 04:56:39 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2000-06-17 04:56:39 +0000 |
commit | 9cf80f2f55589946c22ee18185c2d87a9266012a (patch) | |
tree | c8cae31d829cf4a1c19bc4a76a9219985841e2b4 /src/include/utils/syscache.h | |
parent | 1652d433582dc819746ba166a6dbdb9e9643e69a (diff) |
Clean out another pocket of functions called via nonspecific function
pointers, namely the catcache tuple fetch routines. Also get rid of
the unused and possibly confusing 'size' field in struct cachedesc.
Since it doesn't allow for variable-length fields, anyone who
actually trusted it would likely be making a mistake...
Diffstat (limited to 'src/include/utils/syscache.h')
-rw-r--r-- | src/include/utils/syscache.h | 32 |
1 files changed, 6 insertions, 26 deletions
diff --git a/src/include/utils/syscache.h b/src/include/utils/syscache.h index 272b177c781..5d17e8db44c 100644 --- a/src/include/utils/syscache.h +++ b/src/include/utils/syscache.h @@ -9,7 +9,7 @@ * Portions Copyright (c) 1996-2000, PostgreSQL, Inc * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: syscache.h,v 1.25 2000/04/12 17:16:55 momjian Exp $ + * $Id: syscache.h,v 1.26 2000/06/17 04:56:29 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -18,17 +18,14 @@ #include "access/htup.h" - /* #define CACHEDEBUG *//* turns DEBUG elogs on */ - - /* * Declarations for util/syscache.c. * * SysCache identifiers. * * The order of these must match the order - * they are entered into the structure cacheinfo[] in syscache.c - * Keep them in alphabeticall order. + * they are entered into the structure cacheinfo[] in syscache.c. + * Keep them in alphabetical order. */ #define AGGNAME 0 @@ -60,30 +57,13 @@ #define TYPENAME 26 #define TYPEOID 27 -/* ---------------- - * struct cachedesc: information needed for a call to InitSysCache() - * ---------------- - */ -struct cachedesc -{ - char *name; /* this is Name so that we can initialize - * it */ - int nkeys; - int key[4]; - int size; /* sizeof(appropriate struct) */ - char *indname; /* index relation for this cache, if - * exists */ - HeapTuple (*iScanFunc) ();/* function to handle index scans */ -}; - extern void zerocaches(void); extern void InitCatalogCache(void); -extern HeapTuple SearchSysCacheTupleCopy(int cacheId, - Datum key1, Datum key2, Datum key3, Datum key4); extern HeapTuple SearchSysCacheTuple(int cacheId, Datum key1, Datum key2, Datum key3, Datum key4); +extern HeapTuple SearchSysCacheTupleCopy(int cacheId, + Datum key1, Datum key2, Datum key3, Datum key4); extern Datum SysCacheGetAttr(int cacheId, HeapTuple tup, - AttrNumber attributeNumber, - bool *isnull); + AttrNumber attributeNumber, bool *isNull); #endif /* SYSCACHE_H */ |