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

Function CacheInvalidateRelcacheByTuple

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

* CacheInvalidateRelcacheByTuple * As above, but relation is identified by passing its pg_class tuple. */

Source from the content-addressed store, hash-verified

1408 * As above, but relation is identified by passing its pg_class tuple.
1409 */
1410void
1411CacheInvalidateRelcacheByTuple(HeapTuple classTuple)
1412{
1413 Form_pg_class classtup = (Form_pg_class) GETSTRUCT(classTuple);
1414 Oid databaseId;
1415 Oid relationId;
1416
1417 PrepareInvalidationState();
1418
1419 relationId = classtup->oid;
1420 if (classtup->relisshared)
1421 databaseId = InvalidOid;
1422 else
1423 databaseId = MyDatabaseId;
1424 RegisterRelcacheInvalidation(databaseId, relationId);
1425}
1426
1427/*
1428 * CacheInvalidateRelcacheByRelid

Callers 9

SetRelationRuleStatusFunction · 0.85
CreateTriggerFiringOnFunction · 0.85
copy_table_dataFunction · 0.85
swap_relation_filesFunction · 0.85
SetRelationHasSubclassFunction · 0.85
InvalidateJobCacheFunction · 0.85
index_update_statsFunction · 0.85

Calls 2

PrepareInvalidationStateFunction · 0.85

Tested by

no test coverage detected