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 1gDjcV-0002sj-9s for pgsql-hackers@arkaria.postgresql.org; Sat, 20 Oct 2018 05:16:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gDjcS-0000AN-Tc for pgsql-hackers@arkaria.postgresql.org; Sat, 20 Oct 2018 05:16:12 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gDjcS-0000AG-Lq for pgsql-hackers@lists.postgresql.org; Sat, 20 Oct 2018 05:16:12 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gDjcQ-0003HS-LF for pgsql-hackers@postgresql.org; Sat, 20 Oct 2018 05:16:12 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 22300C2E; Sat, 20 Oct 2018 01:16:08 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Sat, 20 Oct 2018 01:16:08 -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:content-transfer-encoding:in-reply-to; s=fm2; bh=8 vzXCKokzkScMzcfXMu697965oNER2LlrQzBcmkzs/E=; b=n+zW5IQ8djruXK978 OscxcmlnuHwnKAD9dlZ4vSQkhMB3X0UjP3vlg1/I/Rcv/GmA17FE9eGueSu+3q/O ywi1CvpReoEycR/yWqAG/VOH0VCjVdKH7FnlFJO5ns50aLlRjgUWM32Ya6VYOf5+ jIaZeV6A/r8/fAUo6rc1axpJuNRQQoq166PBNacTl2rG86U2DvlxBxwlvUjU7vaz 6rDNtYPKmKHJQBpn/3xiDfS69yoRJHxw7bSsI5ORNXO6ecYI7NBRAJkK3pSabiG2 jzT4AHNwyVrhRo7q7tODUIuBLe4OIWL9v2el92dtFx3ei+A2/Tyh3p6nxZLzJrEv IrmbQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding: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=8vzXCKokzkScMzcfXMu697965oNER2LlrQzBcmkzs /E=; b=s7V3ub+PCdgrGD4JJRVh8HUC00BGvfv5PCK7xSegP8NSuy0COXWIEKF/m y04600W2NQXagnm+pZz8sixw4L91rf798WhLRs4NaqzPfWiZY3aQbdeEvo+9JpeY sBZ92TrX2Ds6xzABF+nP1fz4y0KxuNFKU0EMc9PQgP+VhMHd79J03qK+O06exYhi qgI31W0ZMWCC9++rVkWV3BUbhFP98m23OueUBWp1JqHidjXG9Ry3W17PqcflzdnI u44LVhjpN0tnj19/QCBO/Qk2h5t8fkI9CLeSU2yh3GrAWQ3f3ZZHcHAn9foTGxME EeH7KYOWUCbH40NQtIkfx+SYlSC9A== 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 7423CE4412; Sat, 20 Oct 2018 01:16:06 -0400 (EDT) Date: Fri, 19 Oct 2018 22:16:05 -0700 From: Andres Freund To: Stephen Frost Cc: Michael Paquier , Andrew Dunstan , Daniel Gustafsson , Magnus Hagander , Michael Banck , Postgres hackers , Tom Lane Subject: Re: pgsql: Add TAP tests for pg_verify_checksums Message-ID: <20181020051605.pnemvsfmawdpiufe@alap3.anarazel.de> References: <20181019192146.j4my7yjzv4eitw2w@alap3.anarazel.de> <20181019195728.GQ4184@tamriel.snowman.net> <20181019200723.4byzaw5km5jvsxlc@alap3.anarazel.de> <20181019203546.GR4184@tamriel.snowman.net> <20181019205724.ewnuhvrsanacihzq@alap3.anarazel.de> <20181019213257.GS4184@tamriel.snowman.net> <16306.1539988998@sss.pgh.pa.us> <20181020033955.GA2553@paquier.xyz> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, On 2018-10-20 00:25:19 -0400, Stephen Frost wrote: > If we are going to decide that we only deal with files in our directories > matching these whitelisted patterns, then shouldn’t we apply similar logic > in things like DROP DATABASE and any other cases where we perform actions > in a recursive manner across our database and table space directories? I'm honestly not sure if you're just trolling at this point. Why would anybody reasonable be concerned about DROP DATABASE dropping the directory for the database? You're not honestly suggesting that anybody would write an extension or anything like that that stores data in the wrong database's directory, right? Other iterations like fsyncing files, copying the entire template database directory, etc are similarly harmless or positive. Greetings, Andres Freund