Andres Freund <andres@anarazel.de> writes:
> I just had a slightly crazy idea: What if we just blessed wholerow
> rowmark types? Then we'd pretty trivially have access to the relevant
> types?
What would be trivial about that? You'd still need access to RTE-specific
information. I'm a little worried about the extra load on the typcache,
too.
> Or alternatively even just add type information to the
> PlanRowMark for ROW_MARK_COPY instead of reconstructing it at runtime?
Maybe, but I'm not sure that leads to a less invasive solution.
regards, tom lane