Re: Deleting old files from pgsql_tmp

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: John Barham <jbarham(at)gmail(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Deleting old files from pgsql_tmp
Date: 2005-11-04 03:08:55
Message-ID: 200511040308.jA438tp20814@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

John Barham wrote:
> Is it safe to delete old files created in pgsql_tmp? I ask because a
> rogue query created almost 800 GB of temporary files and I would like
> to reclaim that disk space. The query was killed (using kill -9 which
> I know is not the right thing to do...) so did not get the chance to
> clean up after itself.

Yes, as long as the files are not associated with any running backend.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Joost Kraaijeveld 2005-11-04 08:59:59 changing group permissions of logfile
Previous Message John Barham 2005-11-04 02:30:41 Deleting old files from pgsql_tmp