Re: [EXTERNAL] Re: Crash in record_type_typmod_compare
Jeff Davis <pgsql@j-davis.com>
From: Jeff Davis <pgsql@j-davis.com>
To: Sait Talha Nisanci <Sait.Nisanci@microsoft.com>, Andres Freund <andres@anarazel.de>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>, Metin Doslu <Metin.Doslu@microsoft.com>
Date: 2021-07-10T17:58:29Z
Lists: pgsql-hackers
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
Commits
-
Fix assign_record_type_typmod().
- 52c168db955d 11.13 landed
- 5b1621d2fb73 12.8 landed
- edd9a2bf741b 13.4 landed
- 10a07973cf72 14.0 landed
- dd0e37cc1598 15.0 landed
-
Improve an error message
- 1509c6fc29c0 14.0 cited