Re: rmtree cleanup

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: rmtree cleanup
Дата
Msg-id 41818FC5.8080101@dunslane.net
обсуждение исходный текст
Ответ на Re: rmtree cleanup  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-patches

Tom Lane wrote:

>Andrew Dunstan <andrew@dunslane.net> writes:
>
>
>>The attached patch cleans up src/port/dirmod.c::rmtree() a bit. It moves
>>the filename finding portion into its own function, and in that function
>>only scans the directory once instead of twice.
>>
>>
>
>Applied, along with some further hacking to reduce the #ifdef clutter
>by providing palloc substitute routines.
>

Nice. It's actually readable now :-)

>I checked it still works on
>Unix, would you check I didn't break the Windows cases?
>
>
>
>

Yes, it works. Thanks.

andrew

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: pg_autovacuum vacuum cost variables patch v2
Следующее
От: Neil Conway
Дата:
Сообщение: Re: transformExpr() refactor