Re: Pinned files at Windows - Mailing list pgsql-hackers

From Robert Haas
Subject Re: Pinned files at Windows
Date
Msg-id CA+TgmoYQ1P6WrT-td+8z904JWb2ePpu0abavAHOi4NbnDYO52w@mail.gmail.com
Whole thread Raw
In response to Re: Pinned files at Windows  (Konstantin Knizhnik <k.knizhnik@postgrespro.ru>)
Responses Re: Pinned files at Windows
List pgsql-hackers
On Thu, May 30, 2019 at 3:25 AM Konstantin Knizhnik
<k.knizhnik@postgrespro.ru> wrote:
> If call of stat() is succeed, then my assumption is that the only reason
> of GetFileAttributesEx
> failure is that file is deleted and returning ENOENT error code in this
> case is correct behavior.

In my experience, the assumption "the only possible cause of an error
during X is Y" turns out to be wrong nearly 100% of the time.  Our job
is to report the errors the OS gives us, not guess what they mean.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



pgsql-hackers by date:

Previous
From: Jesper Pedersen
Date:
Subject: Re: Index Skip Scan
Next
From: Peter Eisentraut
Date:
Subject: Fix runtime errors from -fsanitize=undefined