Re: Remove sort files

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Remove sort files
Дата
Msg-id 16111.990640978@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Remove sort files  (Bruce Momjian <pgman@candle.pha.pa.us>)
Ответы Re: Remove sort files  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-patches
Bruce Momjian <pgman@candle.pha.pa.us> writes:
>> Bruce Momjian <pgman@candle.pha.pa.us> writes:
> One reasonable idea is
> cd pg_sorttemp ; rm -f *
>>
> OK, here is the new 'find' line:
>>
>> No, the point is not to use find at all.

> Actually, I can do:

>     rm -f */pg_sorttemp/*

> New command is:

>     snprintf(clear_pg_sorttemp, sizeof(clear_pg_sorttemp),
>             "rm -f \"%s\"/base/*/pg_sorttemp/*",
>             DataDir);

I said cd for a reason: if you do it that way, you've cut the maximum
number of files you can delete by at least an order of magnitude,
depending on how long DataDir is.

Why do we need per-database sorttemp areas anyway?  Seems better to have
an installation-wide one.

            regards, tom lane

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

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