Re: DROP DATABASE vs patch to not remove files right away

From: Heikki Linnakangas <heikki(at)enterprisedb(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: DROP DATABASE vs patch to not remove files right away
Date: 2008-04-18 06:52:54
Message-ID: 48084546.4010602@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane wrote:
> Heikki Linnakangas <heikki(at)enterprisedb(dot)com> writes:
>> Patch attached that does the three changes we've talked about:'
>> - make ForgetDatabaseFsyncRequests forget unlink requests as well
>> - make rmtree() not fail on ENOENT
>> - force checkpoint on in dropdb on all platforms
>
> This looks fine as far as it goes

Ok, committed.

> but I'm still thinking it's a bad
> idea for rmtree() to fall over on the first failure. I propose that it
> ought to keep trying to delete the rest of the target directory tree.
> Otherwise, one permissions problem (for example) could lead to most
> of a dropped database not getting freed up,
>
> If there aren't objections, I'll make that happen after Heikki applies
> his patch.

Agreed. Be my guest.

--
Heikki Linnakangas
EnterpriseDB http://www.enterprisedb.com

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bryce Nesbitt 2008-04-18 07:07:29 Re: Proposed patch - psql wraps at window width
Previous Message Bryce Nesbitt 2008-04-18 06:44:46 Coding standards