Re: rmtree() failure on Windows - Mailing list pgsql-hackers

From Tom Lane
Subject Re: rmtree() failure on Windows
Date
Msg-id 20584.1098719795@sss.pgh.pa.us
Whole thread Raw
In response to rmtree() failure on Windows  (Andrew Dunstan <andrew@dunslane.net>)
Responses Re: rmtree() failure on Windows
Re: rmtree() failure on Windows
List pgsql-hackers
Andrew Dunstan <andrew@dunslane.net> writes:
> Shown below is an extract from the traces of make installcheck in 
> contrib. It is decorated with some extra traces I built into 
> src/port/dirmod.c::rmtree(). It shows quite reproducible failure of 
> rmtree(), mostly at the rmdir calls, but even more worryingly there are 
> consistent unlink failures also.

I kinda suspect that what you are looking at is a problem with the
delayed-unlinking feature that we built to cope with Windows' inability
to unlink open files, ie, it's being a little too slow to do the
unlinks.  Would you refresh my memory about exactly where and when the
unlink happens if the initial try fails?
        regards, tom lane


pgsql-hackers by date:

Previous
From: acfernando@hotmail.com (Peace Crusader)
Date:
Subject: Re: Daylight saving time
Next
From: Tom Lane
Date:
Subject: Re: [PATCHES] ARC Memory Usage analysis