Re: Directory fsync and other fun

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Takahiro Itagaki <itagaki.takahiro@oss.ntt.co.jp>
Cc: Andres Freund <andres@anarazel.de>, pgsql-hackers@postgresql.org, Mark Mielke <mark@mark.mielke.cc>, Florian Weimer <fw@deneb.enyo.de>, Greg Stark <gsstark@mit.edu>, Robert Haas <robertmhaas@gmail.com>
Date: 2010-02-24T02:59:49Z
Lists: pgsql-hackers
Takahiro Itagaki <itagaki.takahiro@oss.ntt.co.jp> writes:
> Andres Freund <andres@anarazel.de> wrote:
>> I started setting up some halfway automated method of simulating hard crashes 
>> and even while setting those up I found some pretty unsettling results...
>> Now its not unlikely that my testing is flawed but unfortunately I don't see 
>> where right now (its 3am now and I have a 8h trainride behind me, so ...)

> I think the reported behavior is a TODO item to research:

We have since found out that the copydir code was completely broken and
wasn't fsyncing anything.  So those tests need to be re-run against HEAD
before jumping to any conclusions.

			regards, tom lane