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 1gv2KJ-00013J-7y for pgsql-general@arkaria.postgresql.org; Sat, 16 Feb 2019 15:56:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gv2KH-0001G7-Tv for pgsql-general@arkaria.postgresql.org; Sat, 16 Feb 2019 15:56:25 +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 1gv2KH-0001G0-Hj for pgsql-general@lists.postgresql.org; Sat, 16 Feb 2019 15:56:25 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gv2KF-0001eR-0g for pgsql-general@lists.postgresql.org; Sat, 16 Feb 2019 15:56:24 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x1GFuFFX026907; Sat, 16 Feb 2019 10:56:16 -0500 From: Tom Lane To: Thomas Munro cc: Andres Freund , Bruce Klein , "pgsql-generallists.postgresql.org" Subject: Re: WSL (windows subsystem on linux) users will need to turn fsync off as of 11.2 In-reply-to: References: <30532.1550191685@sss.pgh.pa.us> <20190215170658.z5hj7irs6ig4l66r@alap3.anarazel.de> <18784.1550250790@sss.pgh.pa.us> <653E7ADD-3473-4F6E-B2EB-7FEF494DC5E1@anarazel.de> <17265.1550252690@sss.pgh.pa.us> <8B8CCA3A-83AF-43BA-A773-9C4160BF866E@anarazel.de> Comments: In-reply-to Thomas Munro message dated "Sat, 16 Feb 2019 10:20:02 +1300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <26905.1550332575.1@sss.pgh.pa.us> Date: Sat, 16 Feb 2019 10:56:15 -0500 Message-ID: <26906.1550332575@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Thomas Munro writes: >>> Really? The specification says that it starts I/O, not that it waits >>> around for any to finish. > Right, there was some discussion of that, and I didn't (and still > don't) think it'd be wise to rely on undocumented knowledge about > which flags can eat errors based on a drive-by reading of a particular > snapshot of the Linux tree. The man page says it can return EIO; I > think we should assume that it might actually do that. I had a thought about this: maybe we should restrict the scope of this behavior to be "panic on EIO", not "panic on anything within hailing distance of fsync". The direction you and Andres seem to want to go in is to add a pile of unprincipled exception cases, which seems like a recipe for constant pain to me. I think we might be better off with a whitelist of errnos that mean trouble, instead of a blacklist of some that don't. I'm especially troubled by the idea that blacklisting some errnos might reduce to ignoring them completely, which would be a step backwards from our pre-PANIC behavior. regards, tom lane