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

Function BlessTupleDesc

src/backend/executor/execTuples.c:2087–2095  ·  view source on GitHub ↗

* BlessTupleDesc - make a completed tuple descriptor useful for SRFs * * Rowtype Datums returned by a function must contain valid type information. * This happens "for free" if the tupdesc came from a relcache entry, but * not if we have manufactured a tupdesc for a transient RECORD datatype. * In that case we have to notify typcache.c of the existence of the type. */

Source from the content-addressed store, hash-verified

2085 * In that case we have to notify typcache.c of the existence of the type.
2086 */
2087TupleDesc
2088BlessTupleDesc(TupleDesc tupdesc)
2089{
2090 if (tupdesc->tdtypeid == RECORDOID &&
2091 tupdesc->tdtypmod < 0)
2092 assign_record_type_typmod(tupdesc);
2093
2094 return tupdesc; /* just for notational convenience */
2095}
2096
2097/*
2098 * TupleDescGetAttInMetadata - Build an AttInMetadata structure based on the

Callers 15

pg_visibility_tupdescFunction · 0.85
readindexFunction · 0.85
verify_heapam_tupdescFunction · 0.85
bt_page_items_internalFunction · 0.85
bt_page_items_byteaFunction · 0.85
brin_metapage_infoFunction · 0.85
hash_page_statsFunction · 0.85
hash_page_itemsFunction · 0.85
hash_bitmap_infoFunction · 0.85
hash_metapage_infoFunction · 0.85
pax_get_operatorsFunction · 0.85

Calls 1

Tested by 6

test_predtestFunction · 0.68
assign_new_recordFunction · 0.68
gp_keepalives_checkFunction · 0.68
test_enc_conversionFunction · 0.68
test_xlog_aoFunction · 0.68
dirty_buffersFunction · 0.68