Re: Loaded footgun open_datasync on Windows
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: Magnus Hagander <magnus@hagander.net>
Cc: Amit Kapila <amit.kapila16@gmail.com>, Laurenz Albe <laurenz.albe@cybertec.at>, pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2018-06-01T18:56:54Z
Lists: pgsql-hackers
On Fri, Jun 01, 2018 at 07:32:26PM +0200, Magnus Hagander wrote: > Basically, this method *is* safe as long as you have proper storage. For > example, if yo have a RAID controller with cache, it is perfectly safe. If > you have a consumer level device with unsafe caching, then it's not safe. > This behaves basically the same as it does on e.g. Linux, which is also > unsafe if you have an unsafe conusmer device. When things come to VMs or containers, developers and users tend to be sloppy regarding the hardware being used, and they are not usually aware that the database running within it is sensitive to such details. Many folks use Postgres, so IMO having defaults which are safe without relying on hardware characteristics is a rather sensible approach. (Got bitten by that in the past, not everybody is careful). My 2c. -- 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