Re: Remove sort files

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Remove sort files
Дата
Msg-id Pine.LNX.4.30.0105231702210.757-100000@peter.localdomain
обсуждение исходный текст
Ответ на Remove sort files  (Bruce Momjian <pgman@candle.pha.pa.us>)
Ответы Re: Remove sort files  (Bruce Momjian <pgman@candle.pha.pa.us>)
Re: Remove sort files  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-patches
Bruce Momjian writes:

> The only unusual part is the use of system("find...rm...") to remove the
> files in pg_sorttemp.  Seemed cleaner than doing fancy directory
> walking code in C.

'find' is not in the portable subset of shell utilities, AFAIK.  If you do
put them into a separate directory you could use "rm -rf %s" on that
directory.

Why don't we put the sort files into /tmp and let the system figure out
how to get rid of them?

--
Peter Eisentraut   peter_e@gmx.net   http://funkturm.homeip.net/~peter


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

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