pgsql: Make CREATE DATABASE safe against losing whole files by fsyncing

Started by Bruce Momjianover 16 years ago1 messagescomitters
Jump to latest
#1Bruce Momjian
bruce@momjian.us

Log Message:
-----------
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.

Tags:
----
REL8_3_STABLE

Modified Files:
--------------
pgsql/src/port:
copydir.c (r1.21.2.1 -> r1.21.2.2)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/port/copydir.c?r1=1.21.2.1&r2=1.21.2.2)