pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Revert "Fix issues with Windows' stat() for files pending on del 2+ messages / 1 participants [nested] [flat]
* pgsql: Revert "Fix issues with Windows' stat() for files pending on del @ 2021-07-12 05:47 Michael Paquier <michael@paquier.xyz> 0 siblings, 0 replies; 2+ messages in thread From: Michael Paquier @ 2021-07-12 05:47 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 ------ master Details ------- https://git.postgresql.org/pg/commitdiff/2c9b46c090e76c62f24563b9be2c34e6b92e9329 Modified Files -------------- src/port/open.c | 4 +- src/port/win32stat.c | 177 +++++++++++++++++++++++++++++++++++++-------------- 2 files changed, 132 insertions(+), 49 deletions(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
* pgsql: Revert "Fix issues with Windows' stat() for files pending on del @ 2021-07-12 05:47 Michael Paquier <michael@paquier.xyz> 0 siblings, 0 replies; 2+ messages in thread From: Michael Paquier @ 2021-07-12 05:47 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2021-07-12 05:47 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2021-07-12 05:47 pgsql: Revert "Fix issues with Windows' stat() for files pending on del Michael Paquier <michael@paquier.xyz> 2021-07-12 05:47 pgsql: Revert "Fix issues with Windows' stat() for files pending on del Michael Paquier <michael@paquier.xyz>
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