Re: [EXTERNAL] Re: Crash in record_type_typmod_compare

Поиск
Список
Период
Сортировка
От Jeff Davis
Тема Re: [EXTERNAL] Re: Crash in record_type_typmod_compare
Дата
Msg-id 1913a3e8399214325b8ee61c09608a64a7d81eb5.camel@j-davis.com
обсуждение исходный текст
Ответ на Re: [EXTERNAL] Re: Crash in record_type_typmod_compare  (Sait Talha Nisanci <Sait.Nisanci@microsoft.com>)
Список 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





В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: pgsql: Fix numeric_mul() overflow due to too many digits after decimal
Следующее
От: Dean Rasheed
Дата:
Сообщение: Re: pgsql: Fix numeric_mul() overflow due to too many digits after decimal