]> granicus.if.org Git - postgresql/commit
Make CREATE DATABASE safe against losing whole files by fsyncing the
authorGreg Stark <stark@mit.edu>
Sun, 14 Feb 2010 17:50:39 +0000 (17:50 +0000)
committerGreg Stark <stark@mit.edu>
Sun, 14 Feb 2010 17:50:39 +0000 (17:50 +0000)
commit1534023ff0bd836ec851f780fa3fa1289ecb752f
tree35e54593307079fee2aedfc6b257f1bf3f59794b
parentc53917dc66bb1df640636f96d7803e8ace2889d3
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