]> 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:34 +0000 (17:50 +0000)
committerGreg Stark <stark@mit.edu>
Sun, 14 Feb 2010 17:50:34 +0000 (17:50 +0000)
commit7f92f7cf711833db77b2d8214c60190cbfeebf1e
treeca240f562de329017eaad1d6b2ea607293af936d
parent38a7ddc5f7d241a162a0aa57d0ba768f97d17264
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