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