* SearchSysCacheCopyAttName * * As above, an attisdropped-aware version of SearchSysCacheCopy. */
| 1517 | * As above, an attisdropped-aware version of SearchSysCacheCopy. |
| 1518 | */ |
| 1519 | HeapTuple |
| 1520 | SearchSysCacheCopyAttName(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 |
no test coverage detected