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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: DROP DATABASE vs patch to not remove files right away
Дата
Msg-id 23717.1208382078@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: DROP DATABASE vs patch to not remove files right away  (Heikki Linnakangas <heikki@enterprisedb.com>)
Ответы Re: DROP DATABASE vs patch to not remove files right away  (Andrew Dunstan <andrew@dunslane.net>)
Re: DROP DATABASE vs patch to not remove files right away  (Heikki Linnakangas <heikki@enterprisedb.com>)
Список pgsql-hackers
Heikki Linnakangas <heikki@enterprisedb.com> writes:
> Tom Lane wrote:
>> ISTM that we must fix the bgwriter so that ForgetDatabaseFsyncRequests
>> causes PendingUnlinkEntrys for the doomed DB to be thrown away too.

> Because of the asynchronous nature of ForgetDatabaseFsyncRequests, this 
> still isn't enough, I'm afraid.

Hm.  I notice that there is no bug on Windows because dropdb forces a
checkpoint before it starts to remove files.  Maybe the sanest solution
is to just do that on all platforms.
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Lessons from commit fest
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: Lessons from commit fest