Re: Remove sort files

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Remove sort files
Дата
Msg-id 16181.990641624@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Remove sort files  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-patches
Peter Eisentraut <peter_e@gmx.net> writes:
> Bruce Momjian writes:
>> New command is:
>>
>> snprintf(clear_pg_sorttemp, sizeof(clear_pg_sorttemp),
>> "rm -f \"%s\"/base/*/pg_sorttemp/*",
>> DataDir);

> Why not put all sort files into a common directory and then do a simple
> readdir() loop in C?

I was about to say that the potential portability headaches would be
more trouble than the "feature" is worth.  OTOH, I see that xlog.c is
depending on readdir already, so maybe it's OK to use it.

            regards, tom lane

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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: Remove sort files
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Remove sort files