Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gDYPU-0004FX-5t for pgsql-hackers@arkaria.postgresql.org; Fri, 19 Oct 2018 17:18:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gDYPQ-0007Mf-95 for pgsql-hackers@arkaria.postgresql.org; Fri, 19 Oct 2018 17:18:00 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gDYPO-0007MY-7z for pgsql-hackers@lists.postgresql.org; Fri, 19 Oct 2018 17:18:00 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gDYPJ-0003pR-6j for pgsql-hackers@postgresql.org; Fri, 19 Oct 2018 17:17:56 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id A78F7C09; Fri, 19 Oct 2018 13:17:50 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Fri, 19 Oct 2018 13:17:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=Lm2mAS9ojeBtF+Xtz+N1JwWjVFS r+K5t7vj31ziMqRY=; b=WpB8m4Gp2MRZLnIuE8SP0XC6CCtHaGsgYCeLBwBjCLA hOaoOmSlLUVe153PuS0EPHAJff4ZSfyKkQU087iq5ByokWVSR1CdP0YsepZq35my DnDgJoX28nxlF44a2nSeaMS3t4+Jr5GXsuRbJbR/fmkItNXyiqhIxYTjtSDH/u6p +dTs1vXgg2rYL0b8o+NX42eEHosKZJRvCFP7VgxcUk0V/NJHuAm6p3crRlsopvmb 0yG2o8kkuFv3mtzurCScq2ov1CDdrhq9uwlyY5roYhX66Yi4+IT1RnllWVjoiMrV aD5tb9k//CrmcF28SYHiLUn2ov2BBFzYTOYJJV31/UQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=Lm2mAS 9ojeBtF+Xtz+N1JwWjVFSr+K5t7vj31ziMqRY=; b=O+H/cCmWSGp9wZNMVP/WsE X+FjmUeLHFjal5pd8N/YlhrGk4caf0k6l7IxkCiSB+ZK1gvsXVXdkoOrw5HOpHCp 4teh+kEhjwltlj1Rntl2sApab6zUFNtsFkGxcjbQeLaAj2s3aFTNLKajmIdHWnQo pLVCuEZEBK/f3vIP9jOORkf6ZPHZOviR+k4PpIssmGvupAYLzrV1HAY9IJNaeePw X/eoKG7o2A0HqqVGtAWn9TGT17f60sleQ42XdZ6vcx5oSejtgv5tGCmoscxaVjT1 JxpaVhhQ4VjSb9OI3f7A8UEvnF+yDkdIQfkuZtPARqP10KnRv63LRk0f+26anDRw == X-ME-Sender: X-ME-Proxy: Received: from intern.anarazel.de (c-98-210-140-171.hsd1.ca.comcast.net [98.210.140.171]) by mail.messagingengine.com (Postfix) with ESMTPA id 8B01EE421C; Fri, 19 Oct 2018 13:17:48 -0400 (EDT) Date: Fri, 19 Oct 2018 10:17:47 -0700 From: Andres Freund To: Stephen Frost Cc: Michael Paquier , Andrew Dunstan , Tom Lane , Michael Banck , Postgres hackers , Daniel Gustafsson , Magnus Hagander Subject: Re: pgsql: Add TAP tests for pg_verify_checksums Message-ID: <20181019171747.4uithw2sjkt6msne@alap3.anarazel.de> References: <20181014224138.GA15473@paquier.xyz> <11414.1539615900@sss.pgh.pa.us> <20181016220900.GA2331@paquier.xyz> <61121849-19c2-ca27-a928-08aacc0f1105@2ndQuadrant.com> <20181019135009.GG2099@paquier.xyz> <20181019143659.GJ4184@tamriel.snowman.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181019143659.GJ4184@tamriel.snowman.net> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, On 2018-10-19 10:36:59 -0400, Stephen Frost wrote: > * Michael Paquier (michael@paquier.xyz) wrote: > > On Wed, Oct 17, 2018 at 05:30:05PM -0400, Andrew Dunstan wrote: > > > Fine by me. > > > > Thanks. This is now committed after some tweaks to the comments, a bit > > earlier than I thought first. > > I just saw this committed and I'm trying to figure out why we are > creating yet-another-list when it comes to deciding what should be > checksum'd and what shouldn't be. I'm not sure it's fair to blame Michael here. He's picking up slack, because the original authors of the tool didn't even bother to reply to the issue for quite a while. pg_verify_checksum was obviously never tested on windows, it just didn't have tests showing that. > I also categorically disagree with the notion that it's ok for > extensions to dump files into our tablespace diretories or that we > should try to work around random code dumping extra files in the > directories which we maintain- it's not like this additional code will > actually protect us from that, after all, and it's foolish to think we > really could protect against that. I'm unconvinced. There already are extensions doing so, and it's not like we've given them any sort of reasonable alternative. You can't just create relations in a "registered" / "supported" kinda way right now, so uh, yea, extension gotta make do. And that has worked for many years. Also, as made obvious here, it's pretty clear that there's platform differences about which files exists and which don't, so it's not that a blacklist approach automatically is more maintainable. And I fail to see why a blacklist is architecturally better. There's plenty cases where we might want to create temporary files, non-checksummed data or such that we'd need a teach a blacklist about, but there's far fewer cases where add new checksummed files. Basically never since checksums have been introduced. And if checksums were introduced for something new, say slrus, we'd ceertainly use pg_verify_checksum during development. Greetings, Andres Freund