Re: [HACKERS] rmtree() failure on Windows

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [HACKERS] rmtree() failure on Windows
Дата
Msg-id 26443.1098924114@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [HACKERS] rmtree() failure on Windows  (Andrew Dunstan <andrew@dunslane.net>)
Список pgsql-patches
Andrew Dunstan <andrew@dunslane.net> writes:
> Tom Lane wrote:
>> Try putting "RequestCheckpoint(true)" in dbcommands.c just before
>> remove_dbtablespaces (about line 630).

> seems to do the trick. patch attached.

Patch applied.

>> Not necessary, as long as you put the checkpoint after the DropBuffers
>> call in dbcommands.c.  The bgwriter won't find anything to write.

> What about other databases? Or won't the forced checkpoint affect them?

For them, it's just an ordinary checkpoint.  It's kind of a brute-force
solution, but I'm disinclined to worry about optimizing DROP DATABASE ...

            regards, tom lane

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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: [HACKERS] rmtree() failure on Windows
Следующее
От: Neil Conway
Дата:
Сообщение: Re: pgstat cleanup: use palloc and AllocateFile