Re: rmtree() failure on Windows

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: rmtree() failure on Windows
Date: 2004-10-25 22:46:57
Message-ID: 417D8261.8060106@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Tom Lane wrote:

>Andrew Dunstan <andrew(at)dunslane(dot)net> writes:
>
>
>>If I increase the sleep time before dropdb enormously (35 secs) the
>>unlink errors seem to go away, and instead they become rmdir errors like
>>the rest.
>>
>>
>
>Do you have anything equivalent to ps that you could use to check
>whether there is still an old backend alive during this interval?
>
>Does Windows forbid deleting a directory that is the current working
>directory of some process (assuming they even have the same concept
>of cwd as Unixen)? If so, is this the same error symptom you would get?
>I am wondering if the rmdir failure occurs because an old backend is
>still chdir'd into the database directory.
>
>
>
>

No, testing shows you get "permission denied" rather than "directory not
empty" in this case.

cheers

andrew

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Joshua D. Drake 2004-10-25 22:47:09 Re: Lamar stepping down
Previous Message Devrim GUNDUZ 2004-10-25 22:18:35 Re: RPMS, time, and other things.

Browse pgsql-patches by date

  From Date Subject
Next Message Kenneth Marshall 2004-10-25 22:48:30 Re: [PATCHES] ARC Memory Usage analysis
Previous Message Tom Lane 2004-10-25 21:53:25 Re: [PATCHES] ARC Memory Usage analysis