Re: Remove sort files

Поиск
Список
Период
Сортировка
От Michael Richards
Тема Re: Remove sort files
Дата
Msg-id 3B0B08E6.000121.68010@frodo.searchcanada.ca
обсуждение исходный текст
Ответ на 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  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-patches
> 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.

Should this figure out and use a path to the find command? Unless
postgres sets CWD, is it possible as-is to coerce it into rming some
files you did not intend to have rm'd? I didn't have/spend time
looking at it with a fine toothcomb, but usually calling find and rm
without an explicit path is a Bad Thing(tm).

-Michael
_________________________________________________________________
     http://fastmail.ca/ - Fast Free Web Email for Canadians

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

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