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

Function RelationIncrementReferenceCount

src/backend/utils/cache/relcache.c:2227–2234  ·  view source on GitHub ↗

* RelationIncrementReferenceCount * Increments relation reference count. * * Note: bootstrap mode has its own weird ideas about relation refcount * behavior; we ought to fix it someday, but for now, just disable * reference count ownership tracking in bootstrap mode. */

Source from the content-addressed store, hash-verified

2225 * reference count ownership tracking in bootstrap mode.
2226 */
2227void
2228RelationIncrementReferenceCount(Relation rel)
2229{
2230 ResourceOwnerEnlargeRelationRefs(CurrentResourceOwner);
2231 rel->rd_refcnt += 1;
2232 if (!IsBootstrapProcessingMode())
2233 ResourceOwnerRememberRelationRef(CurrentResourceOwner, rel);
2234}
2235
2236/*
2237 * RelationDecrementReferenceCount

Callers 13

RelationIdGetRelationFunction · 0.85
RelationFlushRelationFunction · 0.85
appendonly_fetch_initFunction · 0.85
heap_beginscanFunction · 0.85
index_beginscan_internalFunction · 0.85
aocs_beginrangescanFunction · 0.85
aocs_beginscanFunction · 0.85
aocs_fetch_initFunction · 0.85
PartitionDirectoryLookupFunction · 0.85

Tested by

no test coverage detected