MCPcopy Create free account
hub / github.com/apache/cloudberry / CreateCacheMemoryContext

Function CreateCacheMemoryContext

src/backend/utils/cache/catcache.c:620–631  ·  view source on GitHub ↗

* Standard routine for creating cache context if it doesn't exist yet * * There are a lot of places (probably far more than necessary) that check * whether CacheMemoryContext exists yet and want to create it if not. * We centralize knowledge of exactly how to create it here. */

Source from the content-addressed store, hash-verified

618 * We centralize knowledge of exactly how to create it here.
619 */
620void
621CreateCacheMemoryContext(void)
622{
623 /*
624 * Purely for paranoia, check that context doesn't exist; caller probably
625 * did so already.
626 */
627 if (!CacheMemoryContext)
628 CacheMemoryContext = AllocSetContextCreate(TopMemoryContext,
629 "CacheMemoryContext",
630 ALLOCSET_DEFAULT_SIZES);
631}
632
633
634/*

Callers 14

LookupOpclassInfoFunction · 0.85
RelationCacheInitializeFunction · 0.85
InitCatCacheFunction · 0.85
lookup_ts_parser_cacheFunction · 0.85
init_ts_config_cacheFunction · 0.85
InitializeRelfilenodeMapFunction · 0.85
lookup_type_cacheFunction · 0.85
InitializeAttoptCacheFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected