]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Make CREATE DATABASE safe against losing whole files by fsyncing the
authorGreg Stark <stark@mit.edu>
Sun, 14 Feb 2010 17:50:47 +0000 (17:50 +0000)
committerGreg Stark <stark@mit.edu>
Sun, 14 Feb 2010 17:50:47 +0000 (17:50 +0000)
commit36e1ed02bf27ace0b41eb1406e389e19c88b3a13
tree41027644dab97318270c0e3b6731f0f478634277
parentd1e0eb30c0d1ed67c22844479c57ea6d9fd5c4d9
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.
src/port/copydir.c