Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1be1qP-0001vL-ST for pgsql-hackers@arkaria.postgresql.org; Sun, 28 Aug 2016 15:17:57 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1be1qP-0002tf-EH for pgsql-hackers@arkaria.postgresql.org; Sun, 28 Aug 2016 15:17:57 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1be1p1-0001N4-F0 for pgsql-hackers@postgresql.org; Sun, 28 Aug 2016 15:16:31 +0000 Received: from mail-wm0-x235.google.com ([2a00:1450:400c:c09::235]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1be1ot-0003VV-Uc for pgsql-hackers@postgresql.org; Sun, 28 Aug 2016 15:16:29 +0000 Received: by mail-wm0-x235.google.com with SMTP id f65so48891561wmi.0 for ; Sun, 28 Aug 2016 08:16:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=kGntSpvREf/su4euNhjbhxaSMXhz81xSp162Uzo2gSo=; b=zeM7tmeo/TgywazoDEc8PPYy4pJ5geZ/WrHbXJ7OmWacdmJS2YhLc33ng4FM6CcwiJ AtfX2UjLz3xwh/QxfObGJaDr4cCFKAF9Oedznhi4q9QFID5Z+ffePlxPwAiNxXv/+1q7 ycmdIDouPdnJwFBI5B0D5ThywVsxvb6K0gslFJBpGwNrYyLO1FRQEIRhueXejwj8fjhZ hGNNd+C+nYI3qRid8K6aWk/Aspeyj5nQ0eBFuQ6riK5aB0UeigHCmAm+toNyjgXY5zZg hg5cHctJEmd503KnRXiaGeltaNv3g0IQ5oygy8U9WXKqVxIvr1tj9uSHa99wPK2kFpBH 04sQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=kGntSpvREf/su4euNhjbhxaSMXhz81xSp162Uzo2gSo=; b=De6oxXBLu+6hleFBZHmLS/uSSaH0qJGvxNsHhqhpyD33sj7GxG4TICWtKoxi5H195F F92dnlPVHSQM+vBwbuZelPqpkO+iFiE4N4EsGHpgOFXn1xYUlwLWw4jBYVVMnhULCMOa iALvIFC/pLZNVdo39QawUbY0oszGhLNqBFcar8jatvjOgiJ1Ei/XbJ2zDvMCdGnvnSRn vhKXf3SurubjHjhA6mIq1MUQK9Uviv6WadPNMGTHjA23R3BLbt9NF5Vpp9M9bZLf2am0 tAhOxe6l+fkEPO4tHfehyLDPszKMktN7791kwBCod3947JSvaEQprAKKPeigOYZLyrR8 Mfpg== X-Gm-Message-State: AE9vXwMzQP5fX5oFd8HHu4cCbielrE7J0+lMMDDu5qo8N1WVwPose0fRokLe/vDrt4z3NUxk2YieYlbApM1QNQn3oKzxIVHogwpwAzxRXeOv7nmjjqfSD6hM46HUqArGeYmA+kFKAanCWTv/VfZDNi0Jiyyo8U+OVhkJUFdjMT5/IKcOaFqXdMJ3gXR16oXJyVg6ukfJUkWz X-Received: by 10.194.104.70 with SMTP id gc6mr12588581wjb.97.1472397382090; Sun, 28 Aug 2016 08:16:22 -0700 (PDT) Received: from [10.137.2.17] (ip-89-177-44-58.net.upcbroadband.cz. [89.177.44.58]) by smtp.gmail.com with ESMTPSA id k3sm29868683wjf.7.2016.08.28.08.16.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 28 Aug 2016 08:16:21 -0700 (PDT) Subject: Re: Bogus sizing parameters in some AllocSetContextCreate calls To: Tom Lane References: <21072.1472321324@sss.pgh.pa.us> <14922.1472395319@sss.pgh.pa.us> <15531.1472396368@sss.pgh.pa.us> Cc: Robert Haas , "pgsql-hackers@postgresql.org" From: Tomas Vondra Message-ID: Date: Sun, 28 Aug 2016 17:16:18 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:46.0) Gecko/20100101 Thunderbird/46.0a2 MIME-Version: 1.0 In-Reply-To: <15531.1472396368@sss.pgh.pa.us> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On 08/28/2016 04:59 PM, Tom Lane wrote: > Tomas Vondra 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