Tom Lane wrote:
> Magnus Hagander <magnus@hagander.net> writes:
>
>> And actually, when I look at the API docs, our case now seems to be
>> documented. Or am I misreading our situation. I have:
>>
>
>
>> "If you call CreateFile on a file that is pending deletion as a result
>> of a previous call to DeleteFile, the function fails. The operating
>> system delays file deletion until all handles to the file are closed.
>> GetLastError returns ERROR_ACCESS_DENIED."
>>
>
> We are not calling CreateFile ... we're just trying to open the thing.
>
>
see src/port/open.c - pgwin32_open() calls CreateFile().
cheers
andrew