* ExecCheckTIDVisible -- convenience variant of ExecCheckTupleVisible() */
| 301 | * ExecCheckTIDVisible -- convenience variant of ExecCheckTupleVisible() |
| 302 | */ |
| 303 | static void |
| 304 | ExecCheckTIDVisible(EState *estate, |
| 305 | ResultRelInfo *relinfo, |
| 306 | ItemPointer tid, |
| 307 | TupleTableSlot *tempSlot) |
| 308 | { |
| 309 | Relation rel = relinfo->ri_RelationDesc; |
| 310 | |
| 311 | /* Redundantly check isolation level */ |
| 312 | if (!IsolationUsesXactSnapshot()) |
| 313 | return; |
| 314 | |
| 315 | if (!table_tuple_fetch_row_version(rel, tid, SnapshotAny, tempSlot)) |
| 316 | elog(ERROR, "failed to fetch conflicting tuple for ON CONFLICT"); |
| 317 | ExecCheckTupleVisible(estate, rel, tempSlot); |
| 318 | ExecClearTuple(tempSlot); |
| 319 | } |
| 320 | |
| 321 | /* |
| 322 | * Compute stored generated columns for a tuple |
no test coverage detected