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

Function InvalidateSystemCachesExtended

src/backend/utils/cache/inval.c:719–741  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

717}
718
719void
720InvalidateSystemCachesExtended(bool debug_discard)
721{
722 int i;
723
724 InvalidateCatalogSnapshot();
725 ResetCatalogCaches();
726 RelationCacheInvalidate(debug_discard); /* gets smgr and relmap too */
727
728 for (i = 0; i < syscache_callback_count; i++)
729 {
730 struct SYSCACHECALLBACK *ccitem = syscache_callback_list + i;
731
732 ccitem->function(ccitem->arg, ccitem->id, 0);
733 }
734
735 for (i = 0; i < relcache_callback_count; i++)
736 {
737 struct RELCACHECALLBACK *ccitem = relcache_callback_list + i;
738
739 ccitem->function(ccitem->arg, InvalidOid);
740 }
741}
742
743
744/* ----------------------------------------------------------------

Callers 2

InvalidateSystemCachesFunction · 0.85

Calls 3

ResetCatalogCachesFunction · 0.85
RelationCacheInvalidateFunction · 0.85

Tested by

no test coverage detected