diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2000-01-23 03:43:24 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2000-01-23 03:43:24 +0000 |
commit | 27fee810ff9968a1034fea4bba4cd8d078c5d2d1 (patch) | |
tree | 24062ec2af7290f3d443e65c044c50e0ef1431be /src/include/utils/syscache.h | |
parent | 1161077e9774496273999183eb29ea4b46d52f66 (diff) | |
download | postgresql-27fee810ff9968a1034fea4bba4cd8d078c5d2d1.tar.gz postgresql-27fee810ff9968a1034fea4bba4cd8d078c5d2d1.zip |
Replace SearchSysCacheGetAttribute with SysCacheGetAttr, which fetches
an attribute of a tuple previously fetched with SearchSysCacheTuple.
This avoids a lot of redundant cache lookups, particularly in selfuncs.c.
Also, remove SearchSysCacheStruct, which was unused and grotty.
Diffstat (limited to 'src/include/utils/syscache.h')
-rw-r--r-- | src/include/utils/syscache.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/include/utils/syscache.h b/src/include/utils/syscache.h index 158a7bdb367..a6acff02654 100644 --- a/src/include/utils/syscache.h +++ b/src/include/utils/syscache.h @@ -8,7 +8,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: syscache.h,v 1.22 1999/11/24 16:52:50 momjian Exp $ + * $Id: syscache.h,v 1.23 2000/01/23 03:43:22 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -81,10 +81,8 @@ 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 int32 SearchSysCacheStruct(int cacheId, char *returnStruct, - Datum key1, Datum key2, Datum key3, Datum key4); -extern void *SearchSysCacheGetAttribute(int cacheId, - AttrNumber attributeNumber, - Datum key1, Datum key2, Datum key3, Datum key4); +extern Datum SysCacheGetAttr(int cacheId, HeapTuple tup, + AttrNumber attributeNumber, + bool *isnull); #endif /* SYSCACHE_H */ |