Re: Permission denied on fsync / Win32 (was right

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Magnus Hagander" <mha(at)sollentuna(dot)net>
Cc: "Peter Brant" <Peter(dot)Brant(at)wicourts(dot)gov>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: Permission denied on fsync / Win32 (was right
Date: 2006-04-18 17:35:39
Message-ID: 15031.1145381739@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

"Magnus Hagander" <mha(at)sollentuna(dot)net> writes:
>> Is it possible that we are getting EACCES (ERROR_SHARING_VIOLATION
>> maybe) in the situation where we try to fsync a file that's
>> been unlinked but isn't fully gone yet due to open handles?

> I think that sounds "reasonable". Not as in a reasonable thing to do,
> but as a reasonable thing to expect from the win32 api.

Probably be good if someone can experimentally confirm that (and confirm
exactly which underlying Win32 error code it is) before we think about
how to fix it.

regards, tom lane

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2006-04-18 18:03:40 Re: [Win32] Problem with rename()
Previous Message Magnus Hagander 2006-04-18 17:24:32 Re: Permission denied on fsync / Win32 (was right