pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Revert "Fix issues with Windows' stat() for files pending on del
Date: Mon, 12 Jul 2021 05:47:02 +0000
Message-ID: <E1m2omU-00062H-Ob@gemulon.postgresql.org> (raw)

Revert "Fix issues with Windows' stat() for files pending on deletion"

This reverts commit 54fb8c7, as per the issues reported by fairywren
when it comes to MinGW because of the lack of microsoft_native_stat()
there.  Using just stat() for MSVC is not sufficient to take care of the
concurrency problems with files pending on deletion.  It may be possible
to paint some __MINGW64__ in the code to switch to a different
implementation of stat() in this build context, but I am not sure either
if relying on the implementation of stat() in MinGW to take care of the
problems we are trying to fix is enough or not.  So this needs more
study.

Discussion: https://postgr.es/m/YOvOlfRrIO0yGtgw@paquier.xyz
Backpatch-through: 14

Branch
------
REL_14_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/5e60237ad1b4e2d159aec48ffd9914a633d2d6e0

Modified Files
--------------
src/port/open.c      |   4 +-
src/port/win32stat.c | 177 +++++++++++++++++++++++++++++++++++++--------------
2 files changed, 132 insertions(+), 49 deletions(-)



view thread (2+ messages)

Message-ID: <E1m2omU-00062H-Ob@gemulon.postgresql.org>
Permalink:  ../E1m2omU-00062H-Ob@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1m2omU-00062H-Ob@gemulon.postgresql.org

 · 

reply

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-committers@postgresql.org
  Cc: michael@paquier.xyz
  Subject: Re: pgsql: Revert "Fix issues with Windows' stat() for files pending on del
  In-Reply-To: <E1m2omU-00062H-Ob@gemulon.postgresql.org>
  References: <E1m2omU-00062H-Ob@gemulon.postgresql.org>

* 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