Andres Freund <and...@anarazel.de> writes: > On 2020-11-08 12:46:44 -0500, Tom Lane wrote: >> In v12 we end up using the junkfilter's output >> slot, which does not have a sufficiently accurate tupdesc to deal with >> an on-disk tuple rather than one constructed by the executor.
> I really wonder if we ought to redesign the column default logic to > really be a property of the Attr, instead of the constraint stuff it is > now. Yeah, I don't much like treating it as a constraint either. Not quite sure that it's worth the work to move it somewhere else, though. > Is it worth adding Bertrand's testcase to the regression suite in some > form? I did add an equivalent test case. regards, tom lane