pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tomas Vondra <tomas.vondra@2ndquadrant.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Subject: Re: Bogus sizing parameters in some AllocSetContextCreate calls
Date: Sun, 28 Aug 2016 17:16:18 +0200
Message-ID: <f4b0041d-5d6d-10d4-2406-5f3507e7d720@2ndquadrant.com> (raw)
In-Reply-To: <15531.1472396368@sss.pgh.pa.us>
References: <21072.1472321324@sss.pgh.pa.us>
	<CA+TgmobNcELVd3QmLD3tx=w7+CokRQiC4_U0txjz=WHpfdkU=w@mail.gmail.com>
	<14922.1472395319@sss.pgh.pa.us>
	<b447c417-f550-f79a-b6a6-491363b7f9a2@2ndquadrant.com>
	<15531.1472396368@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers



view thread (13+ messages)

Message-ID: <f4b0041d-5d6d-10d4-2406-5f3507e7d720@2ndquadrant.com>
Permalink:  ../f4b0041d-5d6d-10d4-2406-5f3507e7d720@2ndquadrant.com/
Also on:    postgresql.org/message-id/f4b0041d-5d6d-10d4-2406-5f3507e7d720@2ndquadrant.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: tomas.vondra@2ndquadrant.com, tgl@sss.pgh.pa.us, robertmhaas@gmail.com
  Subject: Re: Bogus sizing parameters in some AllocSetContextCreate calls
  In-Reply-To: <f4b0041d-5d6d-10d4-2406-5f3507e7d720@2ndquadrant.com>
  References: <21072.1472321324@sss.pgh.pa.us> <CA+TgmobNcELVd3QmLD3tx=w7+CokRQiC4_U0txjz=WHpfdkU=w@mail.gmail.com> <14922.1472395319@sss.pgh.pa.us> <b447c417-f550-f79a-b6a6-491363b7f9a2@2ndquadrant.com> <15531.1472396368@sss.pgh.pa.us> <f4b0041d-5d6d-10d4-2406-5f3507e7d720@2ndquadrant.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox