Re: Remove sort files - Mailing list pgsql-patches

From Michael Richards
Subject Re: Remove sort files
Date
Msg-id 3B0B08E6.000121.68010@frodo.searchcanada.ca
Whole thread Raw
In response to Remove sort files  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: Remove sort files
Re: Remove sort files
List 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 by date:

Previous
From: Bruce Momjian
Date:
Subject: Remove sort files
Next
From: Bruce Momjian
Date:
Subject: Re: Remove sort files