|
PostgreSQL Source Code git master
|
#include "access/htup.h"#include "access/skey.h"#include "lib/ilist.h"#include "utils/relcache.h"

Go to the source code of this file.
Data Structures | |
| struct | catcache |
| struct | catctup |
| struct | catclist |
| struct | catcacheheader |
Macros | |
| #define | CATCACHE_MAXKEYS 4 |
| #define | CT_MAGIC 0x57261502 |
| #define | CL_MAGIC 0x52765103 |
Typedefs | |
| typedef uint32(* | CCHashFN) (Datum datum) |
| typedef bool(* | CCFastEqualFN) (Datum a, Datum b) |
| typedef struct catcache | CatCache |
| typedef struct catctup | CatCTup |
| typedef struct catclist | CatCList |
| typedef struct catcacheheader | CatCacheHeader |
Variables | |
| PGDLLIMPORT MemoryContext | CacheMemoryContext |
| #define CATCACHE_MAXKEYS 4 |
Definition at line 35 of file catcache.h.
| #define CL_MAGIC 0x52765103 |
Definition at line 166 of file catcache.h.
| #define CT_MAGIC 0x57261502 |
Definition at line 99 of file catcache.h.
Definition at line 39 of file catcache.h.
Definition at line 841 of file catcache.c.
References CatCInProgress::cache, CACHE_elog, CacheHdr, CallSyscacheCallbacks(), catcache::cc_reloid, catcacheheader::ch_caches, slist_iter::cur, DEBUG2, catcache::id, ResetCatalogCache(), slist_container, and slist_foreach.
Referenced by LocalExecuteInvalidationMessage().
Definition at line 632 of file catcache.c.
References Assert, CatCInProgress::cache, CACHE_elog, catcache_in_progress_stack, CatCacheRemoveCList(), CatCacheRemoveCTup(), catcache::cc_bucket, catcache::cc_lbucket, catcache::cc_nbuckets, catcache::cc_nlbuckets, dlist_mutable_iter::cur, DEBUG2, dlist_container, dlist_foreach_modify, fb(), HASH_INDEX, i, and CatCInProgress::next.
Referenced by SysCacheInvalidate().
Definition at line 715 of file catcache.c.
References ALLOCSET_DEFAULT_SIZES, AllocSetContextCreate, CacheMemoryContext, and TopMemoryContext.
Referenced by assign_record_type_typmod(), BuildEventTriggerCache(), init_ts_config_cache(), InitCatCache(), InitializeAttoptCache(), InitializeRelfilenumberMap(), InitializeTableSpaceCache(), lookup_ts_dictionary_cache(), lookup_ts_parser_cache(), lookup_type_cache(), LookupOpclassInfo(), RelationBuildLocalRelation(), and RelationCacheInitialize().
Definition at line 1707 of file catcache.c.
References CatCInProgress::cache, CatalogCacheComputeHashValue(), catcache::cc_nkeys, ConditionalCatalogCacheInitializeCache(), and fb().
Referenced by GetSysCacheHashValue().
|
extern |
Definition at line 885 of file catcache.c.
References Assert, AttributeNumberIsValid, CacheHdr, CacheMemoryContext, catcacheheader::ch_caches, catcacheheader::ch_ntup, CreateCacheMemoryContext(), fb(), i, InitCatCache_DEBUG2, MCXT_ALLOC_ZERO, MemoryContextSwitchTo(), on_proc_exit(), palloc0(), palloc_aligned(), palloc_object, PG_CACHE_LINE_SIZE, slist_init(), and slist_push_head().
Referenced by InitCatalogCache().
Definition at line 1245 of file catcache.c.
References AccessShareLock, Assert, CatCInProgress::cache, catcache::cc_indexoid, catcache::cc_reloid, ConditionalCatalogCacheInitializeCache(), fb(), catcache::id, index_close(), index_open(), LockRelationOid(), and UnlockRelationOid().
Referenced by InitCatalogCachePhase2(), and SysCacheGetAttr().
|
extern |
Definition at line 2394 of file catcache.c.
References Assert, CACHE_elog, CacheHdr, CatalogCacheComputeTupleHashValue(), catcacheheader::ch_caches, ConditionalCatalogCacheInitializeCache(), slist_iter::cur, DEBUG2, fb(), function, HeapTupleIsValid, MyDatabaseId, RelationGetRelid, RelationIsValid, slist_container, and slist_foreach.
Referenced by CacheInvalidateHeapTupleCommon().
Definition at line 1668 of file catcache.c.
References CurrentResourceOwner, and ReleaseCatCacheWithOwner().
Referenced by ReleaseSysCache().
Definition at line 2114 of file catcache.c.
References CurrentResourceOwner, CatCInProgress::list, and ReleaseCatCacheListWithOwner().
Referenced by AddEnumLabel(), blvalidate(), brinvalidate(), btvalidate(), ginvalidate(), gistvalidate(), hashvalidate(), opclass_for_family_datatype(), RenameEnumLabel(), sepgsql_relation_drop(), spgvalidate(), and transformFrameOffset().
Definition at line 811 of file catcache.c.
References CatCInProgress::cache, CACHE_elog, CacheHdr, catcacheheader::ch_caches, slist_iter::cur, DEBUG2, fb(), ResetCatalogCache(), slist_container, and slist_foreach.
Referenced by InvalidateSystemCachesExtended(), and ResetCatalogCaches().
Definition at line 1361 of file catcache.c.
References CatCInProgress::cache, catcache::cc_nkeys, fb(), and SearchCatCacheInternal().
Referenced by SearchSysCache().
Definition at line 1378 of file catcache.c.
References CatCInProgress::cache, fb(), and SearchCatCacheInternal().
Referenced by SearchSysCache1().
Definition at line 1386 of file catcache.c.
References CatCInProgress::cache, fb(), and SearchCatCacheInternal().
Referenced by SearchSysCache2().
Definition at line 1394 of file catcache.c.
References CatCInProgress::cache, fb(), and SearchCatCacheInternal().
Referenced by SearchSysCache3().
Definition at line 1402 of file catcache.c.
References CatCInProgress::cache, fb(), and SearchCatCacheInternal().
Referenced by SearchSysCache4().
Definition at line 1740 of file catcache.c.
References AccessShareLock, Assert, CatCInProgress::cache, CACHE_elog, CacheMemoryContext, CatalogCacheCompareTuple(), CatalogCacheComputeHashValue(), CatalogCacheComputeTupleHashValue(), CatalogCacheCreateEntry(), catcache_in_progress_stack, CATCACHE_MAXKEYS, CatCacheCopyKeys(), CatCacheRemoveCTup(), catcache::cc_bucket, catcache::cc_indexoid, catcache::cc_keyno, catcache::cc_lbucket, catcache::cc_nbuckets, catcache::cc_nkeys, catcache::cc_nlbuckets, catcache::cc_nlist, catcache::cc_relname, catcache::cc_reloid, catcache::cc_skey, catcache::cc_tupdesc, CL_MAGIC, ConditionalCatalogCacheInitializeCache(), dlist_iter::cur, CurrentResourceOwner, DEBUG2, dlist_container, dlist_foreach, dlist_move_head(), dlist_push_head(), fb(), HASH_INDEX, HeapTupleIsValid, i, IndexScanOK(), INJECTION_POINT, SysScanDescData::irel, ItemPointerEquals(), lappend(), lfirst, list_length(), MemoryContextAllocZero(), MemoryContextSwitchTo(), CatCInProgress::next, NIL, palloc(), PG_CATCH, PG_END_TRY, PG_RE_THROW, PG_TRY, RehashCatCacheLists(), ResourceOwnerEnlarge(), ResourceOwnerRememberCatCacheListRef(), systable_beginscan(), systable_endscan(), systable_getnext(), table_close(), and table_open().
Referenced by SearchSysCacheList().
|
extern |