Definition at line 104 of file attoptcache.c.
114 memset(&
key, 0,
sizeof(
key));
115 key.attrelid = attrelid;
146 Anum_pg_attribute_attoptions,
173 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
static Datum Int16GetDatum(int16 X)
static Datum ObjectIdGetDatum(Oid 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().