From: | "Magnus Hagander" <magnus(at)hagander(dot)net> |
---|---|
To: | tsunakawa(dot)takay(at)jp(dot)fujitsu(dot)com |
Cc: | pgsql-hackers(at)postgresql(dot)org, tgl(at)sss(dot)pgh(dot)pa(dot)us |
Subject: | Re: Idea for fixing the Windows fsync problem |
Date: | 2007-01-17 08:09:48 |
Message-ID: | 20070117081453.2AF7ADCC186@svr2.hagander.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
> BTW: what happens on Windows if we're trying to do the equivalent
> > of "rm -rf database-dir" and someone is holding open one of the
> files
> > in the directory? Or has the directory itself open for readdir()?
For the first definity and I think for the second, when doing it from the commandline, you get a 'cannot delete the directory because it is not empty'.
I'm not sure if our implementation for dealing with open files also work with directories.
> And I wonder what happens if Windows "copy" command is accessing the
> data files when bgwriter tries to open them for fsync, or the reverse
> of it. copy would fail?
Sharing violation.
> If so, it means that online backup sometimes
> fails.
Any backup software backing up *Anything* online should be using
VSS or a custom OFM. and all real solutions do.
/Magnus
From | Date | Subject | |
---|---|---|---|
Next Message | Wang Haiyong | 2007-01-17 08:34:16 | Re: With Function 'Chr', is it a bug? |
Previous Message | tomas | 2007-01-17 08:03:31 | Re: Index for similarity search |