Skip site navigation (1) Skip section navigation (2)

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 (view raw, whole thread or download thread mbox)
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

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

In response to


pgsql-patches by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group