Robert Haas <robertmhaas(at)gmail(dot)com> writes:
> Hmm... on further review, I'm thinking this is still a bit wastful,
> because we don't really need (I think) to call
> TupleDescGetAttInMetadata from begin_tup_output_tupdesc. But I'm not
> sure what the best way is to avoid that. Any thoughts?
Er, just don't do it? We shouldn't need it if the function is doing
heap_form_tuple directly.
regards, tom lane