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 1guV7l-00021Z-8r for pgsql-general@arkaria.postgresql.org; Fri, 15 Feb 2019 04:29:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1guV7i-0001hw-Kp for pgsql-general@arkaria.postgresql.org; Fri, 15 Feb 2019 04:29:14 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1guV7i-0001ho-Cc for pgsql-general@lists.postgresql.org; Fri, 15 Feb 2019 04:29:14 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1guV7b-00047u-5R for pgsql-general@lists.postgresql.org; Fri, 15 Feb 2019 04:29:14 +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 x1F4Sxx5006945; Thu, 14 Feb 2019 23:28:59 -0500 From: Tom Lane To: Thomas Munro cc: Bruce Klein , Ravi Krishna , "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> <1770779398.1300635.1550195054827@mail.yahoo.com> Comments: In-reply-to Thomas Munro message dated "Fri, 15 Feb 2019 16:14:13 +1300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <6943.1550204939.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 14 Feb 2019 23:28:59 -0500 Message-ID: <6944.1550204939@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Thomas Munro writes: >> On Fri, Feb 15, 2019 at 2:56 PM Bruce Klein wrote: >>> In 11.1 did you see the message "WARNING: could not flush dirty data: = Function not implemented" >> Yes > Here is a place where people go to complain about that: > https://github.com/Microsoft/WSL/issues/645 > I suppose we could tolerate ENOSYS. What I'm not grasping here is why you considered that sync_file_range failure should be treated as a reason to PANIC in the first place? Surely it is not fsync(), nor some facsimile thereof. In fact, if any of the branches in pg_flush_data really need the data_sync_elevel treatment, somebody's mental model of that operation needs adjustment. Maybe it's mine. regards, tom lane