Re: [HACKERS] Directory fsync and other fun

2010-02-23 Thread Greg Stark
On Wed, Feb 24, 2010 at 2:51 AM, Takahiro Itagaki wrote: > Also, I heard ext4 has a "feature" in that rename() might truncate the > renamed file to zero bytes on crash. The user data in the file might be > lost if the machine crashes just after rename(). In our case I think this is the one thing

Re: [HACKERS] Directory fsync and other fun

2010-02-23 Thread Tom Lane
Takahiro Itagaki writes: > Andres Freund 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 >> wh

Re: [HACKERS] Directory fsync and other fun

2010-02-23 Thread Takahiro Itagaki
Andres Freund 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 h