> 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