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 1guh3D-000331-Ut for pgsql-general@arkaria.postgresql.org; Fri, 15 Feb 2019 17:13:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1guh3C-0005Va-K3 for pgsql-general@arkaria.postgresql.org; Fri, 15 Feb 2019 17:13:22 +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 1guh3C-0005VT-Bf for pgsql-general@lists.postgresql.org; Fri, 15 Feb 2019 17:13:22 +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 1guh39-0000PM-Ca for pgsql-general@lists.postgresql.org; Fri, 15 Feb 2019 17:13:21 +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 x1FHDAJt018785; Fri, 15 Feb 2019 12:13:11 -0500 From: Tom Lane To: Andres Freund cc: Bruce Klein , pgsql-general@lists.postgresql.org Subject: Re: WSL (windows subsystem on linux) users will need to turn fsync off as of 11.2 In-reply-to: <20190215170658.z5hj7irs6ig4l66r@alap3.anarazel.de> References: <30532.1550191685@sss.pgh.pa.us> <20190215170658.z5hj7irs6ig4l66r@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Fri, 15 Feb 2019 09:06:58 -0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <18783.1550250790.1@sss.pgh.pa.us> Date: Fri, 15 Feb 2019 12:13:10 -0500 Message-ID: <18784.1550250790@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andres Freund writes: > I suspect that's because WSL has an empty implementation of > sync_file_range(), i.e. it unconditionally returns ENOSYS. But as > configure detects it, we still emit calls for it. I guess we ought to > except ENOSYS for the cases where we do panic-on-fsync-failure? I'm of the opinion that we shouldn't be panicking for sync_file_range failure, period. regards, tom lane