23 #include "catalog/syscache_ids.h"
86 #define SearchSysCacheCopy1(cacheId, key1) \
87 SearchSysCacheCopy(cacheId, key1, 0, 0, 0)
88 #define SearchSysCacheCopy2(cacheId, key1, key2) \
89 SearchSysCacheCopy(cacheId, key1, key2, 0, 0)
90 #define SearchSysCacheCopy3(cacheId, key1, key2, key3) \
91 SearchSysCacheCopy(cacheId, key1, key2, key3, 0)
92 #define SearchSysCacheCopy4(cacheId, key1, key2, key3, key4) \
93 SearchSysCacheCopy(cacheId, key1, key2, key3, key4)
95 #define SearchSysCacheExists1(cacheId, key1) \
96 SearchSysCacheExists(cacheId, key1, 0, 0, 0)
97 #define SearchSysCacheExists2(cacheId, key1, key2) \
98 SearchSysCacheExists(cacheId, key1, key2, 0, 0)
99 #define SearchSysCacheExists3(cacheId, key1, key2, key3) \
100 SearchSysCacheExists(cacheId, key1, key2, key3, 0)
101 #define SearchSysCacheExists4(cacheId, key1, key2, key3, key4) \
102 SearchSysCacheExists(cacheId, key1, key2, key3, key4)
104 #define GetSysCacheOid1(cacheId, oidcol, key1) \
105 GetSysCacheOid(cacheId, oidcol, key1, 0, 0, 0)
106 #define GetSysCacheOid2(cacheId, oidcol, key1, key2) \
107 GetSysCacheOid(cacheId, oidcol, key1, key2, 0, 0)
108 #define GetSysCacheOid3(cacheId, oidcol, key1, key2, key3) \
109 GetSysCacheOid(cacheId, oidcol, key1, key2, key3, 0)
110 #define GetSysCacheOid4(cacheId, oidcol, key1, key2, key3, key4) \
111 GetSysCacheOid(cacheId, oidcol, key1, key2, key3, key4)
113 #define GetSysCacheHashValue1(cacheId, key1) \
114 GetSysCacheHashValue(cacheId, key1, 0, 0, 0)
115 #define GetSysCacheHashValue2(cacheId, key1, key2) \
116 GetSysCacheHashValue(cacheId, key1, key2, 0, 0)
117 #define GetSysCacheHashValue3(cacheId, key1, key2, key3) \
118 GetSysCacheHashValue(cacheId, key1, key2, key3, 0)
119 #define GetSysCacheHashValue4(cacheId, key1, key2, key3, key4) \
120 GetSysCacheHashValue(cacheId, key1, key2, key3, key4)
122 #define SearchSysCacheList1(cacheId, key1) \
123 SearchSysCacheList(cacheId, 1, key1, 0, 0)
124 #define SearchSysCacheList2(cacheId, key1, key2) \
125 SearchSysCacheList(cacheId, 2, key1, key2, 0)
126 #define SearchSysCacheList3(cacheId, key1, key2, key3) \
127 SearchSysCacheList(cacheId, 3, key1, key2, key3)
129 #define ReleaseSysCacheList(x) ReleaseCatCacheList(x)
HeapTuple SearchSysCacheCopyAttName(Oid relid, const char *attname)
void SysCacheInvalidate(int cacheId, uint32 hashValue)
bool RelationHasSysCache(Oid relid)
HeapTuple SearchSysCacheCopyAttNum(Oid relid, int16 attnum)
void InitCatalogCache(void)
void ReleaseSysCache(HeapTuple tuple)
HeapTuple SearchSysCache(int cacheId, Datum key1, Datum key2, Datum key3, Datum key4)
HeapTuple SearchSysCache1(int cacheId, Datum key1)
uint32 GetSysCacheHashValue(int cacheId, Datum key1, Datum key2, Datum key3, Datum key4)
struct catclist * SearchSysCacheList(int cacheId, int nkeys, Datum key1, Datum key2, Datum key3)
HeapTuple SearchSysCache3(int cacheId, Datum key1, Datum key2, Datum key3)
HeapTuple SearchSysCacheAttNum(Oid relid, int16 attnum)
bool RelationSupportsSysCache(Oid relid)
Datum SysCacheGetAttr(int cacheId, HeapTuple tup, AttrNumber attributeNumber, bool *isNull)
bool SearchSysCacheExistsAttName(Oid relid, const char *attname)
void InitCatalogCachePhase2(void)
HeapTuple SearchSysCache2(int cacheId, Datum key1, Datum key2)
HeapTuple SearchSysCacheAttName(Oid relid, const char *attname)
bool SearchSysCacheExists(int cacheId, Datum key1, Datum key2, Datum key3, Datum key4)
HeapTuple SearchSysCacheCopy(int cacheId, Datum key1, Datum key2, Datum key3, Datum key4)
bool RelationInvalidatesSnapshotsOnly(Oid relid)
HeapTuple SearchSysCache4(int cacheId, Datum key1, Datum key2, Datum key3, Datum key4)
Datum SysCacheGetAttrNotNull(int cacheId, HeapTuple tup, AttrNumber attributeNumber)
Oid GetSysCacheOid(int cacheId, AttrNumber oidcol, Datum key1, Datum key2, Datum key3, Datum key4)