Re: Cleaning up directory pgsql_tmp ?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "David Levy" <dvid(dot)levy(at)gmail(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Cleaning up directory pgsql_tmp ?
Date: 2007-03-05 22:34:37
Message-ID: 23642.1173134077@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

"David Levy" <dvid(dot)levy(at)gmail(dot)com> writes:
> I have a 7Go pgsql_tmp directory in my main tablespace which remains
> even after a cluster restart.
> Does anyone know how to clean up properly ? Can i just delete the
> directory in the filesystem (with the cluster up or down ?) ?

If the postmaster's not running, it's certainly safe to remove pgsql_tmp
files. However, unless you are running a pre-7.2 Postgres, the
postmaster should remove them for itself during startup; you should look
into why that's not happening. Permissions problem, perhaps?

regards, tom lane

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Moritz Bayer 2007-03-05 23:30:30 pg_hba.conf & putty
Previous Message David Levy 2007-03-05 21:53:52 Cleaning up directory pgsql_tmp ?