Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h4yH9-00082b-2N for pgsql-committers@arkaria.postgresql.org; Sat, 16 Mar 2019 01:38: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 1h4yH6-0005wU-8S for pgsql-committers@arkaria.postgresql.org; Sat, 16 Mar 2019 01:38:12 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h4yH5-0005uq-9g for pgsql-committers@lists.postgresql.org; Sat, 16 Mar 2019 01:38:11 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h4yH1-0006bY-Db for pgsql-committers@lists.postgresql.org; Sat, 16 Mar 2019 01:38:09 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id AB52E2209E; Fri, 15 Mar 2019 21:38:06 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Fri, 15 Mar 2019 21:38:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm1; bh=aXf5T32fARaFbewgGPxuqhIGSf7 ZSlB7M/Lv+MisE3o=; b=ZYcTBF/z1xSdWHvxhv5pfF62+eLj1/YpAZP7JCs5NEi 8j6+4c9Zx2YOjb2KK0CCq0gUU8zRon2mIMVJUF48AaF2lTDQXGr5uxIFlhD/cKXT NqIpiTj4M4uNgbtq0vjkTLrB4P9FMBZiOkKAY6R0o3j9X12RVGa5lRdeR+SZCacm j1vR0Y9A7iIa02BB5EjFV6FecJmkiOJs9RZUrJ7zHndDpszrOoUhMvXTdnXVIBoj 53JkMIMbIuw+V/rt4NsKzYsHmx0IJgehAbwMCGebcC+dEhe6/KhGrKxXLdrfNC9K ANhcW5CVzDp6H+dvTmpAAxdyLMOc+YJFPfEzTLTzooA== 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=fm2; bh=aXf5T3 2fARaFbewgGPxuqhIGSf7ZSlB7M/Lv+MisE3o=; b=PHSb4j/6nfsXPuuEW/RkJ/ ONEzheDP17d0pRM2rOEXWaoof5se+6d3NaWRpSvRkVdw22G4jxlsHeGzH3tZmWVJ 83o5AoI32kbMN8Es2PVEkL6RSOS6iMGGVMBAY/gMNW+jz97PCO7BT2CKOIC7MQe6 U7uPnExETIBc8XV6Xt0CWpHYYdOFKeEg2Ch/mW5BehcdkxfOEYeBk9B/mA7tP4UO xP9DXkhGa7cNrQTrrE3i/t/iOWNEx3xi3jsMpQAOPuQ0bkopWFdaIpRfoTyzczrc jTjT0D3I6XX1N0SJBa98VvT3IA35ydRvYI1oT2zD2/0wL0T0sRQpbJz+5ZpQ04bg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedutddrheeigdegiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfg hrlhcuvffnffculdejtddmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredttddv necuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesphgrqh huihgvrhdrgiihiieqnecukfhppeduudekrddvgedurddvhedurddvfeeknecurfgrrhgr mhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiiinecuvehluh hsthgvrhfuihiivgeptd X-ME-Proxy: Received: from paquier.xyz (mp76f1fbee.ap.nuro.jp [118.241.251.238]) by mail.messagingengine.com (Postfix) with ESMTPA id 9693DE43BE; Fri, 15 Mar 2019 21:38:04 -0400 (EDT) Date: Sat, 16 Mar 2019 10:38:01 +0900 From: Michael Paquier To: Robert Haas Cc: pgsql-committers Subject: Re: pgsql: Fix thinko when bumping on temporary directories in pg_verify_ch Message-ID: <20190316013801.GA22963@paquier.xyz> References: <20190315005440.GL3493@paquier.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="9amGYk9869ThD9tj" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --9amGYk9869ThD9tj Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Mar 15, 2019 at 10:09:57AM -0400, Robert Haas wrote: > OK. My other gripe with this commit message is that it doesn't > actually explain what problem was being fixed. You explain that it's > wrong, and you explain why fixing it is not a big deal, but you never > quite say what you're actually fixing. I have re-read the commit log a couple of times, and I see your point, sorry for the confusion. I should have added an extra paragraph to mention that when pg_verify_checksums sees a directory folder name which matches PG_TEMP_FILES_DIR when scanning all the entries of a path for checksum verification, then it would return immediately, skipping all the follow-up entries in this path, potentially missing checks in a portion of files. The reason why it is not a problem is actually that PG_TEMP_FILE_PREFIX and PG_TEMP_FILES_DIR have the same value "pgsql_tmp", and that when seeing an entry which matches PG_TEMP_FILE_PREFIX, then the scan of the current folder would correctly move on to the next entry in the current folder instead of simply returning and missing the next entries. -- Michael --9amGYk9869ThD9tj Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAlyMU3kACgkQnvQgOdby QH282w//YTXM2jstwybXQ/RivQhXTL84lM4Jdorw+8qB9NEuZ5GO3/b+twlz06L5 w5aqI+TsJb0wJ9rqPNR17rvvsoefq7zaoykAr7lVvTefCW4wDQFE8y1qwfEunGR9 e3gGthvJeBSEUQSsl5mcO6v5s0Vt/xt1CGa34fGzfmOAFScQVU6uiB0XF+JzJVBv G57yF12G7W/BP9gSRF3e18V2pK9SzuSSa9h9qvssBpuPFpZ9H+FhBEhUo+sol9x4 pJz2+LfW9J7VZ5HJ3KuKks5K1/FUZn2DF/Imo/rxIqdtmSJfHiTsrpQlzTMUx7Im orRIcvtG2PiPY6y23RArU7yLOfuHvwMbkzlGW2dK81hpEk+TzQoSZ4cXffIu/9co 8f8hlixHUTtndUQBZ/Nzfrtn8W/quH7GsiaAgdS9u3mUCCCVUA+s8F54rA9oaU8Q W2rX5UeLUgiMi2NYQPdk3Z01BB9nIsgjxY0F4TQa2N2WbqnsCpsEq6sgsoXueAxE oMYG4ZhnUHZjk2ytekocCZe6vnQ9XnS4sCHOz0dq38zYaV5BzvhkdOW/SmnYaYhd 51jnCEhmIjdRa7tWk7y7coiT1ix1dRgZLw9MFMo1eOluUsSbcfwq/Fk7nQcEl5XF AkTHwP0KjxskKP+eoKRb5WQhgKuCPHyy2Xod49pFje8U5YoXT8A= =ebEw -----END PGP SIGNATURE----- --9amGYk9869ThD9tj--