Re: Loaded footgun open_datasync on Windows
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: Jeff Janes <jeff.janes@gmail.com>
Cc: Laurenz Albe <laurenz.albe@cybertec.at>, Noah Misch <noah@leadboat.com>, Kuntal Ghosh <kuntalghosh.2007@gmail.com>, Amit Kapila <amit.kapila16@gmail.com>, pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2020-07-27T04:04:45Z
Lists: pgsql-hackers
On Thu, Jul 23, 2020 at 01:05:04PM -0400, Jeff Janes wrote: > I have noticed this before, but since it wasn't a production machine I just > shrugged it off as being a hazard of using consumer-grade stuff; it didn't > seem to be worth investigating further. The most direct and non-invasive way to address this problem in back-branches would be to copy the non-concurrent logic in src/port/open.c directly into pg_test_fsync.c. We have done that in the past such things for example with restricted tokens on Windows for pg_upgrade, see fa1e5afa but that was much more important. I am not sure that if it is worth the time spent here though, as it took roughly 10 years to notice the problem (and I don't really count the time where the tool was under src/tools/ but this did not build the tool on Windows). -- Michael
Commits
-
Allow concurrent-safe open() and fopen() in frontend code for Windows
- f02259fe93e7 11.0 landed
- 0ba06e0bfb8c 12.0 landed
-
Fix inclusions of c.h from .h files.
- a72f0365db41 10.0 cited
-
Allow borland compiles.
- fd7c3f67e0bc 8.0.0 cited
-
Corrects issues recently posted by Dann Corbit, allowing libpq/psql to
- 422d4819ee7c 8.0.0 cited