Re: Remove sort files

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: Remove sort files
Date: 2001-05-23 15:05:47
Message-ID: Pine.LNX.4.30.0105231702210.757-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)gmx(dot)net http://funkturm.homeip.net/~peter

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2001-05-23 15:33:48 Re: Remove sort files
Previous Message Bruce Momjian 2001-05-23 01:11:58 Re: Remove sort files