Skip site navigation (1) Skip section navigation (2)

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:34
Message-ID: 20100214175034.E367E7541C5@cvs.postgresql.org (view raw or flat)
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.

Tags:
----
REL8_1_STABLE

Modified Files:
--------------
    pgsql/src/port:
        copydir.c (r1.16.2.1 -> r1.16.2.2)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/port/copydir.c?r1=1.16.2.1&r2=1.16.2.2)

pgsql-committers by date

Next:From: Greg StarkDate: 2010-02-14 17:50:39
Subject: pgsql: Make CREATE DATABASE safe against losing whole files by fsyncing
Previous:From: Magnus HaganderDate: 2010-02-14 14:10:23
Subject: pgsql: Make the msvc build system ask python about details of version

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group