* Store a minimal tuple into TTSOpsMinimalTuple type slot. * * If the target slot is not guaranteed to be TTSOpsMinimalTuple type slot, * use the, more expensive, ExecForceStoreMinimalTuple(). */
| 1460 | * use the, more expensive, ExecForceStoreMinimalTuple(). |
| 1461 | */ |
| 1462 | TupleTableSlot * |
| 1463 | ExecStoreMinimalTuple(MinimalTuple mtup, |
| 1464 | TupleTableSlot *slot, |
| 1465 | bool shouldFree) |
| 1466 | { |
| 1467 | /* |
| 1468 | * sanity checks |
| 1469 | */ |
| 1470 | Assert(mtup != NULL); |
| 1471 | Assert(slot != NULL); |
| 1472 | Assert(slot->tts_tupleDescriptor != NULL); |
| 1473 | |
| 1474 | if (unlikely(!TTS_IS_MINIMALTUPLE(slot))) |
| 1475 | elog(ERROR, "trying to store a minimal tuple into wrong type of slot"); |
| 1476 | tts_minimal_store_tuple(slot, mtup, shouldFree); |
| 1477 | |
| 1478 | return slot; |
| 1479 | } |
| 1480 | |
| 1481 | /* |
| 1482 | * Store a HeapTuple into any kind of slot, performing conversion if |
no test coverage detected