From: Tom Lane <tgl@sss.pgh.pa.us>
To: Thomas Munro <thomas.munro@enterprisedb.com>
Cc: Andres Freund <andres@anarazel.de>
Cc: Bruce Klein <brucek@gmail.com>
Cc: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: WSL (windows subsystem on linux) users will need to turn fsync off as of 11.2
Date: Sat, 16 Feb 2019 10:56:15 -0500
Message-ID: <26906.1550332575@sss.pgh.pa.us> (raw)
In-Reply-To: <CAEepm=3njGdqCCPRvTGYmdCo3WqDQR6_d86hsiUKY9shDFXU7w@mail.gmail.com>
References: <CA+mCpegfOUph2U4ZADtQT16dfbkjjYNJL1bSTWErsazaFjQW9A@mail.gmail.com>
<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>
<CAEepm=3njGdqCCPRvTGYmdCo3WqDQR6_d86hsiUKY9shDFXU7w@mail.gmail.com>
Thomas Munro <thomas.munro@enterprisedb.com> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, thomas.munro@enterprisedb.com, andres@anarazel.de, brucek@gmail.com
Subject: Re: WSL (windows subsystem on linux) users will need to turn fsync off as of 11.2
In-Reply-To: <26906.1550332575@sss.pgh.pa.us>
References: <CA+mCpegfOUph2U4ZADtQT16dfbkjjYNJL1bSTWErsazaFjQW9A@mail.gmail.com> <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> <CAEepm=3njGdqCCPRvTGYmdCo3WqDQR6_d86hsiUKY9shDFXU7w@mail.gmail.com> <26906.1550332575@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox