Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YyWIh-0004Ty-PO for pgsql-committers@arkaria.postgresql.org; Sat, 30 May 2015 02:15:03 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YyWIg-0004M0-47 for pgsql-committers@arkaria.postgresql.org; Sat, 30 May 2015 02:15:02 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YyWIf-0004Ls-Dh for pgsql-committers@postgresql.org; Sat, 30 May 2015 02:15:01 +0000 Received: from mout.gmx.net ([212.227.15.15]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.84) (envelope-from ) id 1YyWIb-0002KB-Uw for pgsql-committers@postgresql.org; Sat, 30 May 2015 02:15:00 +0000 Received: from auth2-smtp.messagingengine.com ([66.111.4.228]) by mail.gmx.com (mrgmx001) with ESMTPSA (Nemesis) id 0M0y8F-1ZFUNl3dol-00v6WA for ; Sat, 30 May 2015 04:14:55 +0200 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailauth.nyi.internal (Postfix) with ESMTP id 3AFFD20704 for ; Fri, 29 May 2015 22:14:53 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute3.internal (MEProxy); Fri, 29 May 2015 22:14:53 -0400 X-Sasl-enc: vu5qIvmaOxg+DHk4Ml4S0ytsIsN2HteEqQeRs9qVNr4s 1432952093 Received: from [10.0.0.5] (unknown [67.165.24.246]) by mail.messagingengine.com (Postfix) with ESMTPA id ED57FC0001F; Fri, 29 May 2015 22:14:52 -0400 (EDT) Message-ID: <55691D1C.2050905@gmx.net> Date: Fri, 29 May 2015 22:14:52 -0400 From: Peter Eisentraut User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Tom Lane CC: pgsql-committers@postgresql.org Subject: Re: pgsql: Adjust initdb to also not consider fsync'ing failures fatal. References: <5568C516.6040909@gmx.net> <27843.1432929966@sss.pgh.pa.us> In-Reply-To: <27843.1432929966@sss.pgh.pa.us> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:IGmT7X3SXcuOzOJB8r49KiO4qPBcWRuT+FXoGAK43sXxSnbf9Ng QqQ5cv8OSMo8m0xbgfIENqe4z/5wU7WHdILLqriFsN/YK2PhR7yRgTLQANGw7meOc6DqInM PSsnS0i7WQzFrAj1oKS8Wsiakq4WZ8bsFU3gvvtCRLg5TWbJ6YqmeZA2SsaFbvFGoaGeHIu ZCeDlxJbXA4fVnX76FLKg== X-UI-Out-Filterresults: notjunk:1;V01:K0:bY5TPyH7LYo=:z9LCwYrCi2f9uJFOm/ZZkx MP5Winc5Zg2nwi3EFtN7ZqkljY2ph+bCcPLWN5HNfmQLPUh0lTLN6gXGnje1LD1mhlGGuS6H4 WheiuGd8ZLKoHX7L44GwJ5bUnNHHiuQ1Tp4veqiNtBGt6X/Amy0s+EVWe1yfXgTpmOcGyytt3 DMTA736KDxgKg4J0X1FgQBYMyAXXVC8ovb3gIfvqVYJ2/RjhJgRG7hk8dQadslW4iARursYrF 3rt3bpgNIhQaJ090so+YYP9pr+Cb8erXUMuxRSk1jLgA08LY/yXebzkjFEnQ7b5qYBDLLAFZW Bo2ZrtCkG3obpPVXB0RTfQHcnza4XUd7voDEEYEThHQb872kViBwxBB8cu9A5MFlxPAFAqRu/ lOBNqtaG0d4GXg2FRJ6a4QluT7MmamiTpJMqBAZGUyH7NakaoRHJJ7dzGAVWhfag4auwnivQ2 8y6UK9mEqLEoPfXkJs8pxktjOl+XXMgAo69Jj7ch9I3ttG9Ya6ft3L3O7DkiXz5HPCskAP1Qo JaPEDvaBsZ2jQ86LRxwvBRF5NSM6tkze1aIthZOwTRMWOxSEDQWTv8F4PvPImDDNJCT0uREfK 44w3x3V30+PDmjMPMM47M+Br7heoZ6bFGnRh5vIpc32k4KZSqTYQkhe/99Y2mhyBqSHTBG+Fi zfwQLfoLG3yLVt6/aUbDxKGQRIefDuNOVlGD728Rw0ZeJHzlf1XJvTjHOBWtlSeDrOe4= X-Pg-Spam-Score: -3.0 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org On 5/29/15 4:06 PM, Tom Lane wrote: > Peter Eisentraut writes: >> On 5/29/15 1:05 PM, Tom Lane wrote: >>> Adjust initdb to also not consider fsync'ing failures fatal. > >> This introduces a failure in the initdb tests, which expect that >> initdb -S -D /notthere >> returns a nonzero exit code. > > Hm, I guess we don't run anything else that touches the DB directory > in this case? In the backend case we'd have failed much earlier. Yeah, in the backend, there are various checks earlier that the data directory exists. > I'm not 100% convinced that the test case's expectation is necessarily > the right thing, though. Well, I think a tool do_something DIRECTORY that just prints out error messages and says "ok" without an error code when the directory doesn't exist is a pretty crappy behavior. The premise of this change was that we don't know what all the files in the data directory might be, but we do know what the top-level directory is, so we should treat that properly. -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers