pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Deleting old files from pgsql_tmp
2+ messages / 2 participants
[nested] [flat]

* Deleting old files from pgsql_tmp
@ 2005-11-04 02:30  John Barham <jbarham@gmail.com>
  0 siblings, 1 reply; 2+ messages in thread

From: John Barham @ 2005-11-04 02:30 UTC (permalink / raw)
  To: pgsql-admin

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.

  John Barham



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Deleting old files from pgsql_tmp
@ 2005-11-04 03:08  Bruce Momjian <pgman@candle.pha.pa.us>
  parent: John Barham <jbarham@gmail.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Bruce Momjian @ 2005-11-04 03:08 UTC (permalink / raw)
  To: John Barham <jbarham@gmail.com>; +Cc: 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@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2005-11-04 03:08 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-11-04 02:30 Deleting old files from pgsql_tmp John Barham <jbarham@gmail.com>
2005-11-04 03:08 ` Bruce Momjian <pgman@candle.pha.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox