Re: Remove sort files - Mailing list pgsql-patches

From Peter Eisentraut
Subject Re: Remove sort files
Date
Msg-id Pine.LNX.4.30.0105231702210.757-100000@peter.localdomain
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
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 by date:

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