pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
how do I get rid of huge sorttemp files?
3+ messages / 3 participants
[nested] [flat]

* how do I get rid of huge sorttemp files?
@ 2003-06-16 15:27  Markus Bertheau <bertheau@bab24.de>
  0 siblings, 1 reply; 3+ messages in thread

From: Markus Bertheau @ 2003-06-16 15:27 UTC (permalink / raw)
  To: pgsql-admin

[root@ds80-237-200-79 6221984]# pwd
/var/lib/pgsql/data/base/6221984
[root@ds80-237-200-79 6221984]# ls -lh --sort=size | head -10
total 9.9G
-rw-------    1 postgres postgres     1.0G Jan  7 12:36
pg_sorttemp10742.0
-rw-------    1 postgres postgres     1.0G Jan  7 12:36
pg_sorttemp10749.0
-rw-------    1 postgres postgres     1.0G Jan  7 12:36
pg_sorttemp10771.0
-rw-------    1 postgres postgres     1.0G Jan  7 12:36
pg_sorttemp10795.0
-rw-------    1 postgres postgres     1.0G Jan  8 17:13
pg_sorttemp3029.0
-rw-------    1 postgres postgres     779M Jan  4 11:39
pg_sorttemp10464.0
-rw-------    1 postgres postgres     599M Jan  7 16:56
pg_sorttemp12913.0
-rw-------    1 postgres postgres     515M Jan  9 17:44
pg_sorttemp2457.0
-rw-------    1 postgres postgres     349M Jan  7 12:36
pg_sorttemp10742.1

template1=# select version();
                           version                           
-------------------------------------------------------------
 PostgreSQL 7.1.3 on i686-pc-linux-gnu, compiled by GCC 2.96
(1 row)

How do I get rid of these huge files and how do I prevent them from
being created again? The dump of the whole database is ~50 Megabytes
gzipped.

Thanks

-- 
Markus Bertheau
Cenes Data GmbH





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

* how do I get rid of huge sorttemp files?
@ 2003-06-16 15:55  Markus Bertheau <twanger@bluetwanger.de>
  0 siblings, 0 replies; 3+ messages in thread

From: Markus Bertheau @ 2003-06-16 15:55 UTC (permalink / raw)
  To: pgsql-admin

[root@ds80-237-200-79 6221984]# pwd
/var/lib/pgsql/data/base/6221984
[root@ds80-237-200-79 6221984]# ls -lh --sort=size | head -10
total 9.9G
-rw-------    1 postgres postgres     1.0G Jan  7 12:36
pg_sorttemp10742.0
-rw-------    1 postgres postgres     1.0G Jan  7 12:36
pg_sorttemp10749.0
-rw-------    1 postgres postgres     1.0G Jan  7 12:36
pg_sorttemp10771.0
-rw-------    1 postgres postgres     1.0G Jan  7 12:36
pg_sorttemp10795.0
-rw-------    1 postgres postgres     1.0G Jan  8 17:13
pg_sorttemp3029.0
-rw-------    1 postgres postgres     779M Jan  4 11:39
pg_sorttemp10464.0
-rw-------    1 postgres postgres     599M Jan  7 16:56
pg_sorttemp12913.0
-rw-------    1 postgres postgres     515M Jan  9 17:44
pg_sorttemp2457.0
-rw-------    1 postgres postgres     349M Jan  7 12:36
pg_sorttemp10742.1

template1=# select version();
                           version                           
-------------------------------------------------------------
 PostgreSQL 7.1.3 on i686-pc-linux-gnu, compiled by GCC 2.96
(1 row)

How do I get rid of these huge files and how do I prevent them from
being created again? The dump of the whole database is ~50 Megabytes
gzipped.

Thanks

-- 
Markus Bertheau
Cenes Data GmbH




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

* Re: how do I get rid of huge sorttemp files?
@ 2003-06-16 19:22  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Markus Bertheau <bertheau@bab24.de>
  0 siblings, 0 replies; 3+ messages in thread

From: Tom Lane @ 2003-06-16 19:22 UTC (permalink / raw)
  To: Markus Bertheau <bertheau@bab24.de>; +Cc: pgsql-admin

Markus Bertheau <bertheau@bab24.de> writes:
>  PostgreSQL 7.1.3 on i686-pc-linux-gnu, compiled by GCC 2.96

> How do I get rid of these huge files

"rm" will do fine, assuming that you are certain the creating backends
aren't around anymore.

> and how do I prevent them from being created again?

An update to something newer than 7.1 might help.  I'm guessing that you
are running into some bug that causes backends to crash every now and
then --- a backend should remove all its temp files at normal exit, but
on crash that doesn't happen.

7.2 and later also have code to auto-remove leftover temp files during
postmaster start, but that code is not in 7.1.

			regards, tom lane



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


end of thread, other threads:[~2003-06-16 19:22 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-06-16 15:27 how do I get rid of huge sorttemp files? Markus Bertheau <bertheau@bab24.de>
2003-06-16 19:22 ` Tom Lane <tgl@sss.pgh.pa.us>
2003-06-16 15:55 how do I get rid of huge sorttemp files? Markus Bertheau <twanger@bluetwanger.de>

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