Make CREATE DATABASE safe against losing whole files by fsyncing the
Greg Stark <stark@mit.edu>
Make CREATE DATABASE safe against losing whole files by fsyncing the directory and not just the individual files. Back-patch to 8.1 -- before that we just called "cp -r" and never fsynced anything anyways.
Files
| Path | Change | +/− |
|---|---|---|
| src/port/copydir.c | modified | +22 −1 |