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

Function CacheInvalidateRelcache

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

* CacheInvalidateRelcache * Register invalidation of the specified relation's relcache entry * at end of command. * * This is used in places that need to force relcache rebuild but aren't * changing any of the tuples recognized as contributors to the relcache * entry by CacheInvalidateHeapTuple. (An example is dropping an index.) */

Source from the content-addressed store, hash-verified

1372 * entry by CacheInvalidateHeapTuple. (An example is dropping an index.)
1373 */
1374void
1375CacheInvalidateRelcache(Relation relation)
1376{
1377 Oid databaseId;
1378 Oid relationId;
1379
1380 PrepareInvalidationState();
1381
1382 relationId = RelationGetRelid(relation);
1383 if (relation->rd_rel->relisshared)
1384 databaseId = InvalidOid;
1385 else
1386 databaseId = MyDatabaseId;
1387
1388 RegisterRelcacheInvalidation(databaseId, relationId);
1389}
1390
1391/*
1392 * CacheInvalidateRelcacheAll

Callers 15

RemoveRewriteRuleByIdFunction · 0.85
EnableDisableRuleFunction · 0.85
RenameRewriteRuleFunction · 0.85
RemoveTriggerByIdFunction · 0.85
renametrigFunction · 0.85
EnableDisableTriggerFunction · 0.85
CreateStatisticsFunction · 0.85
RemovePolicyByIdFunction · 0.85
CreatePolicyFunction · 0.85
AlterPolicyFunction · 0.85
rename_policyFunction · 0.85

Calls 2

PrepareInvalidationStateFunction · 0.85

Tested by

no test coverage detected