Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jZFtA-0001tA-FH for pgsql-hackers@arkaria.postgresql.org; Thu, 14 May 2020 15:35:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jZFt9-00013t-BD for pgsql-hackers@arkaria.postgresql.org; Thu, 14 May 2020 15:35:11 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jZFt8-00013l-Vz for pgsql-hackers@lists.postgresql.org; Thu, 14 May 2020 15:35:11 +0000 Received: from mail-pg1-x531.google.com ([2607:f8b0:4864:20::531]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jZFt6-00006C-40 for pgsql-hackers@postgresql.org; Thu, 14 May 2020 15:35:10 +0000 Received: by mail-pg1-x531.google.com with SMTP id j21so1388100pgb.7 for ; Thu, 14 May 2020 08:35:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb-com.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=FDUUa9Sv1DuO/IXw5bGuFddJU6ns0WkDI9BUWm9nheI=; b=H5oDzz/lBLq/S61GtFtHU71vC8EoSjHCrs+nJmCxh5rKsHKo5PbhVLc/DQXeJeVEO7 dlv7dTT+GRdRF+ImUqBCpnmqc7uVwYyyuKOHQZznVdlR/d9NYswvarW8MWnfDuyVK0A/ wMELft/Q/xQjVg635twOPQU76FD7I+gOjIc4q8KXvQucSEnduVYRZgRur5NOdihrzJNy fOs7ajwuUGyefjSw0k5Y0U37UIYjUEqOpMzMTYjyoZYXLr2mJfJROhA32TLwjkKOr0a2 O7QatXiKbecoCyQsz+oF0+aHX0tzveI8B35DJhP4SM27YextQwFvtcs6Pw61Nm/kkpEe EJXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=FDUUa9Sv1DuO/IXw5bGuFddJU6ns0WkDI9BUWm9nheI=; b=qul8ZKtOL5mvJwkEvthYfrAOT34taukZZt7lh4ZS1uj1+FWpYFU/hzfDI7Y+3Y4Tyd sivYMinrIQDNIPYaRYHCjcQb/Y4WEiTAPAJqu9iFdPj/L4/lYlJZZlsQEXwTE6HQUwG0 rxFtZvaf1kFP6u8ZH+F2puyxKBKDLWed/vAFx4166pfHq3CVrDG/xA3jIRdWtUZBB+3s NJPnafpJLEP3nXwh3FcyiL1v4sfIZJr+Yk/5Htnl3pV5zUN2Ir5J7V6Cnq9KD2m7Mib0 iSlvN8TMMhep70z0nY9/gM3J/Xak5dHBW2UEyqyHqc7hjx/MIsJbxMGplnnp3SKz04tX H55w== X-Gm-Message-State: AOAM530hiqkV0oSMDClCjbvgJoIRGx0AY5rWF/wlXCRVyjrc2Uj6PYvz W0wRn4Nu3pfBvHcm5UKhgzl81Cm7w+GuTaRrAVHvhnL6G3Y7/4c5zI4p+XCAMnC+Isz+calnwbi 5RlAX220b8k+gD5XH8YypWnc2JHwrMVpMRYTrskAx4nGWTSa3U3buTBG8E2lI3d+3eMo7qFlfvo 5rkPhlpCwSiapvLMZc5A9tHqa98YZVQMZpGsRa X-Google-Smtp-Source: ABdhPJyFeSq58DdR+fR6aLxFNzbmKMcHIiu5Nd2IRKpHL7FHNqbVMEy9DjvM8Y1bRoYW/K+rYWxPag== X-Received: by 2002:a63:d152:: with SMTP id c18mr4390677pgj.259.1589470505686; Thu, 14 May 2020 08:35:05 -0700 (PDT) Received: from [192.168.0.29] (24-113-193-150.wavecable.com. [24.113.193.150]) by smtp.gmail.com with ESMTPSA id f70sm2589785pfa.17.2020.05.14.08.35.04 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 May 2020 08:35:04 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Subject: Re: new heapcheck contrib module From: Mark Dilger In-Reply-To: Date: Thu, 14 May 2020 08:35:03 -0700 Cc: Alvaro Herrera , Robert Haas , Andres Freund , PostgreSQL-development Content-Transfer-Encoding: quoted-printable Message-Id: <2CC5AAF7-E6DB-42E8-91DC-0C6E88FEBC3D@enterprisedb.com> References: <20200513221051.GA26592@alvherre.pgsql> <4D704A12-2546-4789-90B0-B0445BFC717B@enterprisedb.com> To: Peter Geoghegan X-Mailer: Apple Mail (2.3608.80.23.2.2) X-CLOUD-SEC-AV-Info: enterprisedb,google_mail,monitor X-CLOUD-SEC-AV-Sent: true X-Gm-Spam: 0 X-Gm-Phishy: 0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk > On May 13, 2020, at 5:36 PM, Peter Geoghegan wrote: >=20 > On Wed, May 13, 2020 at 5:18 PM Mark Dilger > wrote: >> I am not removing any assertions. I do not propose to remove any = assertions. When I talk about "hardening against assertions", that is = not in any way a proposal to remove assertions from the code. >=20 > I'm sorry if I seemed to suggest that you wanted to remove assertions Not a problem at all. As always, I appreciate your involvement in this = code and design review.=20 >> I think this is a misrepresentation of the tests that I've been = running. >=20 > I didn't actually mean it that way, but I can see how my words could > reasonably be interpreted that way. I apologize. Again, no worries.=20 >> There are two kinds of tests that I have done: >>=20 >> First, there is the regression tests, t/004_verify_heapam.pl, which = is obviously contrived. That was included in the regression test suite = because it needed to be something other developers could read, verify, = "yeah, I can see why that would be corruption, and would give an error = message of the sort the test expects", and then could be run to verify = that indeed that expected error message was generated. >=20 > I still don't think that this is necessary. It could work for one type > of corruption, that happens to not have any of the problems, but just > testing that one type of corruption seems rather arbitrary to me. As discussed with Robert off list, this probably doesn't matter. The = patch can be committed with or without this particular TAP test. =E2=80=94 Mark Dilger EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company