Definition at line 103 of file attoptcache.c.
113 memset(&
key, 0,
sizeof(
key));
114 key.attrelid = attrelid;
145 Anum_pg_attribute_attoptions,
172 if (attopt->
opts == NULL)
static HTAB * AttoptCacheHash
static void InitializeAttoptCache(void)
void * hash_search(HTAB *hashp, const void *keyPtr, HASHACTION action, bool *foundPtr)
#define HeapTupleIsValid(tuple)
void * MemoryContextAlloc(MemoryContext context, Size size)
MemoryContext CacheMemoryContext
static AmcheckOptions opts
#define ObjectIdGetDatum(X)
bytea * attribute_reloptions(Datum reloptions, bool validate)
void ReleaseSysCache(HeapTuple tuple)
Datum SysCacheGetAttr(int cacheId, HeapTuple tup, AttrNumber attributeNumber, bool *isNull)
HeapTuple SearchSysCache2(int cacheId, Datum key1, Datum key2)
References attnum, ATTNUM, AttoptCacheHash, attribute_reloptions(), CacheMemoryContext, HASH_ENTER, HASH_FIND, hash_search(), HeapTupleIsValid, InitializeAttoptCache(), Int16GetDatum, sort-test::key, MemoryContextAlloc(), ObjectIdGetDatum, AttoptCacheEntry::opts, opts, palloc(), ReleaseSysCache(), SearchSysCache2(), SysCacheGetAttr(), and VARSIZE.
Referenced by compute_expr_stats(), and do_analyze_rel().