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

Function SearchSysCacheCopyAttNum

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

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

Source from the content-addressed store, hash-verified

1580 * As above, an attisdropped-aware version of SearchSysCacheCopy.
1581 */
1582HeapTuple
1583SearchSysCacheCopyAttNum(Oid relid, int16 attnum)
1584{
1585 HeapTuple tuple,
1586 newtuple;
1587
1588 tuple = SearchSysCacheAttNum(relid, attnum);
1589 if (!HeapTupleIsValid(tuple))
1590 return NULL;
1591 newtuple = heap_copytuple(tuple);
1592 ReleaseSysCache(tuple);
1593 return newtuple;
1594}
1595
1596
1597/*

Callers 2

ATExecSetStatisticsFunction · 0.85

Calls 3

SearchSysCacheAttNumFunction · 0.85
heap_copytupleFunction · 0.85
ReleaseSysCacheFunction · 0.85

Tested by

no test coverage detected