Re: Bogus sizing parameters in some AllocSetContextCreate calls - Mailing list pgsql-hackers

From Tomas Vondra
Subject Re: Bogus sizing parameters in some AllocSetContextCreate calls
Date
Msg-id f4b0041d-5d6d-10d4-2406-5f3507e7d720@2ndquadrant.com
Whole thread Raw
In response to Re: Bogus sizing parameters in some AllocSetContextCreate calls  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: Bogus sizing parameters in some AllocSetContextCreate calls
Next
From: "Regina Obe"
Date:
Subject: PostgreSQL Version 10, missing minor version