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

From: stark(at)postgresql(dot)org (Greg Stark)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Make CREATE DATABASE safe against losing whole files by fsyncing
Date: 2010-02-14 17:50:52
Message-ID: 20100214175052.C62437541C5@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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.

Modified Files:
--------------
pgsql/src/port:
copydir.c (r1.24 -> r1.25)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/port/copydir.c?r1=1.24&r2=1.25)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2010-02-14 18:42:19 pgsql: Wrap calls to SearchSysCache and related functions using macros.
Previous Message Greg Stark 2010-02-14 17:50:47 pgsql: Make CREATE DATABASE safe against losing whole files by fsyncing