Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gAuUN-0004c3-Us for pgsql-hackers@arkaria.postgresql.org; Fri, 12 Oct 2018 10:16:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gAuUM-0002GO-1V for pgsql-hackers@arkaria.postgresql.org; Fri, 12 Oct 2018 10:16:10 +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.89) (envelope-from ) id 1gAuUL-0002GB-NL for pgsql-hackers@lists.postgresql.org; Fri, 12 Oct 2018 10:16:09 +0000 Received: from mout.gmx.net ([212.227.17.21]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gAuUI-00071X-7M for pgsql-hackers@postgresql.org; Fri, 12 Oct 2018 10:16:08 +0000 Received: from nighthawk.chemicalconnection.dyndns.org ([88.217.106.67]) by mail.gmx.com (mrgmx101 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MNMyz-1gHmEn2VFB-006zL6; Fri, 12 Oct 2018 12:15:48 +0200 Received: from nighthawk.chemicalconnection.dyndns.org ([88.217.106.67]) by mail.gmx.com (mrgmx101 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MNMyz-1gHmEn2VFB-006zL6; Fri, 12 Oct 2018 12:15:48 +0200 Received: from mbanck by nighthawk.chemicalconnection.dyndns.org with local (Exim 4.84_2) (envelope-from ) id 1gAuT2-0001oD-DO; Fri, 12 Oct 2018 12:14:48 +0200 Date: Fri, 12 Oct 2018 12:14:48 +0200 From: Michael Banck To: Michael Paquier Cc: Andres Freund , Postgres hackers , Daniel Gustafsson , Magnus Hagander Subject: Re: pgsql: Add TAP tests for pg_verify_checksums Message-ID: <20181012101447.GA13287@nighthawk.caipicrew.dd-dns.de> References: <20181012005614.GC26424@paquier.xyz> <20181012010411.re53cwcistcpip5j@alap3.anarazel.de> <20181012013918.GA30064@paquier.xyz> <20181012015319.ezsb2cxb52ulbqgx@alap3.anarazel.de> <20181012020758.GB30064@paquier.xyz> <20181012024118.q3jwio7gf52nsrmm@alap3.anarazel.de> <20181012031158.GD30064@paquier.xyz> <20181012060543.GE30064@paquier.xyz> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20181012060543.GE30064@paquier.xyz> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: X-Provags-ID: V03:K1:tcx8CG/YZn4TuxC3yBJwZSW4OBma7HvplyNZHhSaDrCDXMGeqeB VHAmESMt1tnTZd+y7ZaE5C7VAQLgVaQrYB8k+yOC/XucflKk0mhrb9QyLv4lRUVaOOUAK2f MbO2pxBmrE/35iY2Hnq5yjCjmufs2o90HYDqx/F5aZyX3BjD6kIVhuaC2uaUZTRaH2/RqFE gtNBQ26gzRMDqAvIxHTUA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V01:K0:LS/FObZ/yII=:lcOPvobDHfI5PigDF8ZyF1 mQdBA5C2IgUKL2SI/Fz6PvF9NjH/6MOFyFbfKRGQgclURwoXDBseBIBh8X9AjeX0eo1rT/4FC gtq+W68S3P6djFxvYnMfOsMmlFxI87eqbGBph2STwqcM8RltIr+nke4NiXu/1GPu+YiYA079E U2J4cwhMIDuffZc/4BeOZeoGRtzZRoaWNw5wYbmyt/PR+B/xflQvIdWlq8GiHqKTOoPfaX17Z PGD/16sjMnyObxBdmKuhiFrufEAtF6at26htYsHhGVi41WkkplloKtL5fseQjNys6JRuPJ1N8 QyX37YEJEzm/u+36uhYwAmov6HZNvhzHHRWjIorN8KNzt3mHClfsG+CKftrw7LZJoxXX0WUXG wV2Tk2j1lJXiS4Yuv1ySfhBc/J/49Sld0C4ZkHrNk8cdo7cB8q5i/NOuJkAp3flTVZwpEzOsm AM72NXM2Aan+alUnrK0BpaEdvRcZZmIu4EeKB+8wmBa1N8Xi51uR1KjJIRxSKchQ2Kj3el8OX oZI2XqrEXZIVRCY8LVK/6eHbjTb1XEdTcC4Hl/EHdjuFT4Nfe2qv+2JjGyfiugOeiUkJlrDM5 5hK04MvxI3yq+YMwRj5RtfbFgiVigOQUPTZ0AawJk5l9vSxroy1T69e/Ho8IRczvK1mbMxUcR j/IDtH6QAVtHC0rnz4FzJL72cVv37O0qFZdOep182D6LGB+yeDFd++/xEhBEB9osZHxBZ9jPl pktmmdcvdHVn58XG7HoDezA5Zxg2SHnvoe9hvTIKnH1YVkPEiwH8oIvu5W+q7ZO9JalZw/KHl Zrbw/jhBjRMMrofLNAvTUilIX0uKQ== List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, On Fri, Oct 12, 2018 at 03:05:43PM +0900, Michael Paquier wrote: > On Fri, Oct 12, 2018 at 12:11:58PM +0900, Michael Paquier wrote: > > Agreed. I am just working on a patch for v11- which uses a > > whitelist-based method instead of what is present now. Reverting the > > tests to put the buildfarm to green could be done, but that's not the > > root of the problem. I think that's the right solution; the online verification patch adds even more logic to the blacklist so getting rid of it in favor of a whitelist is +1 with me. > So, I have coded this thing, and finish with the attached. The > following file patterns are accepted for the checksums: > . > _ > _. > I have added some tests on the way to make sure that all the patterns > get covered. Please note that this skips the temporary files. Maybe also add some correct (to be scanned) but non-empty garbage files later on that it should barf on? Michael -- Michael Banck Projektleiter / Senior Berater Tel.: +49 2166 9901-171 Fax: +49 2166 9901-100 Email: michael.banck@credativ.de credativ GmbH, HRB Mönchengladbach 12080 USt-ID-Nummer: DE204566209 Trompeterallee 108, 41189 Mönchengladbach Geschäftsführung: Dr. Michael Meskes, Jörg Folz, Sascha Heuer Unser Umgang mit personenbezogenen Daten unterliegt folgenden Bestimmungen: https://www.credativ.de/datenschutz