On Mon, 2021-04-05 at 12:07 +0000, Sait Talha Nisanci wrote: > Hi Andres, > > Please see the updated patch, do you mean something like this? (there > might be a simpler way for doing this) >
Committed with minor revisions. My patch also avoids incrementing NextRecordTypmod until we've already called CreateTupleDescCopy(). Otherwise, an allocation failure could leave NextRecordTypmod unnecessarily incremented, which is a tiny leak. Regards, Jeff Davis