]> 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:43 +0000 (17:50 +0000)
committerGreg Stark <stark@mit.edu>
Sun, 14 Feb 2010 17:50:43 +0000 (17:50 +0000)
commit60e45730a9c15a842c904c84ba8d4bfeca7b8e53
tree4e4e05058a7d289d1c2db8d48fe71790a2f54ae0
parentbd11a4690bf8e46d1291e1377ce56d661c11cb61
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