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

Function SearchSysCacheCopyAttName

src/backend/utils/cache/syscache.c:1519–1531  ·  view source on GitHub ↗

* SearchSysCacheCopyAttName * * As above, an attisdropped-aware version of SearchSysCacheCopy. */

Source from the content-addressed store, hash-verified

1517 * As above, an attisdropped-aware version of SearchSysCacheCopy.
1518 */
1519HeapTuple
1520SearchSysCacheCopyAttName(Oid relid, const char *attname)
1521{
1522 HeapTuple tuple,
1523 newtuple;
1524
1525 tuple = SearchSysCacheAttName(relid, attname);
1526 if (!HeapTupleIsValid(tuple))
1527 return tuple;
1528 newtuple = heap_copytuple(tuple);
1529 ReleaseSysCache(tuple);
1530 return newtuple;
1531}
1532
1533/*
1534 * SearchSysCacheExistsAttName

Callers 15

renameatt_internalFunction · 0.85
ATExecAddColumnFunction · 0.85
ATExecDropNotNullFunction · 0.85
ATExecSetNotNullFunction · 0.85
ATExecAddIdentityFunction · 0.85
ATExecSetIdentityFunction · 0.85
ATExecDropIdentityFunction · 0.85
ATPrepDropExpressionFunction · 0.85
ATExecDropExpressionFunction · 0.85
ATExecSetStatisticsFunction · 0.85
ATExecSetStorageFunction · 0.85
ATExecDropColumnFunction · 0.85

Calls 3

SearchSysCacheAttNameFunction · 0.85
heap_copytupleFunction · 0.85
ReleaseSysCacheFunction · 0.85

Tested by

no test coverage detected