* Fetch tuple at `tid` into `slot`, after doing a visibility test according to * `snapshot`. If a tuple was found and passed the visibility test, returns * true, false otherwise. * * See table_index_fetch_tuple's comment about what the difference between * these functions is. It is correct to use this function outside of index * entry->table tuple lookups. */
| 1486 | * entry->table tuple lookups. |
| 1487 | */ |
| 1488 | static inline bool |
| 1489 | table_tuple_fetch_row_version(Relation rel, |
| 1490 | ItemPointer tid, |
| 1491 | Snapshot snapshot, |
| 1492 | TupleTableSlot *slot) |
| 1493 | { |
| 1494 | /* |
| 1495 | * We don't expect direct calls to table_tuple_fetch_row_version with |
| 1496 | * valid CheckXidAlive for catalog or regular tables. See detailed |
| 1497 | * comments in xact.c where these variables are declared. |
| 1498 | */ |
| 1499 | if (unlikely(TransactionIdIsValid(CheckXidAlive) && !bsysscan)) |
| 1500 | elog(ERROR, "unexpected table_tuple_fetch_row_version call during logical decoding"); |
| 1501 | |
| 1502 | return rel->rd_tableam->tuple_fetch_row_version(rel, tid, snapshot, slot); |
| 1503 | } |
| 1504 | |
| 1505 | /* |
| 1506 | * Verify that `tid` is a potentially valid tuple identifier. That doesn't |
no outgoing calls
no test coverage detected