Re: Remove sort files

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: Remove sort files
Date: 2001-05-23 16:27:47
Message-ID: 15079.990635267@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> Why don't we put the sort files into /tmp and let the system figure out
> how to get rid of them?

Hard-wiring the assumption that they should be in /tmp would be VASTLY
worse than our current situation. Lots of people run with /tmp its own,
not very large partition. There are also serious security issues on
machines that don't have directory stickybits.

I do not like the way Bruce is doing the find, either, but moving stuff
to /tmp isn't the answer.

One reasonable idea is

cd pg_sorttemp ; rm -f *

which could potentially fail if there are LOTS of dead temp files
(enough to make the expanded rm command overrun your kernel limit on
command length) but if there are that many then you've got serious
problems anyway.

regards, tom lane

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2001-05-23 16:29:54 Re: Remove sort files
Previous Message Bruce Momjian 2001-05-23 15:55:42 Re: Remove sort files