Re: Bogus sizing parameters in some AllocSetContextCreate calls

Поиск
Список
Период
Сортировка
От Tomas Vondra
Тема Re: Bogus sizing parameters in some AllocSetContextCreate calls
Дата
Msg-id f4b0041d-5d6d-10d4-2406-5f3507e7d720@2ndquadrant.com
обсуждение исходный текст
Ответ на Re: Bogus sizing parameters in some AllocSetContextCreate calls  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On 08/28/2016 04:59 PM, Tom Lane wrote:
> Tomas Vondra <tomas.vondra@2ndquadrant.com> writes:
>> I'm however pretty sure this will have absolutely no impact on profiles.
>
> Yeah, I do not believe that either.  Also, I think that the intent of the
> existing code is to defend against bad parameters even in non-assert
> builds.  Which might argue for turning these into test-and-elog rather
> than asserts.
>

I agree. There's a fair number of contrib modules, and when they compile 
just fine people are unlikely to test them with assert-enabled builds. 
So they would not notice any issues, but it'd get broken as we've 
removed the code that fixes the values for them.


-- 
Tomas Vondra                  http://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Bogus sizing parameters in some AllocSetContextCreate calls
Следующее
От: "Regina Obe"
Дата:
Сообщение: PostgreSQL Version 10, missing minor version