]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Revert "Fix issues with Windows' stat() for files pending on deletion"
authorMichael Paquier <michael@paquier.xyz>
Mon, 12 Jul 2021 05:46:40 +0000 (14:46 +0900)
committerMichael Paquier <michael@paquier.xyz>
Mon, 12 Jul 2021 05:46:40 +0000 (14:46 +0900)
commit5e60237ad1b4e2d159aec48ffd9914a633d2d6e0
tree211ef29c382936e4f8194763ceabb446723daf3e
parentde1510e2f5a1826890b206253016ebfc592c2f0a
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
src/port/open.c
src/port/win32stat.c