Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 9128F9FB7F7 for ; Mon, 5 Mar 2007 18:35:11 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-new, port 10024) with ESMTP id 06211-01 for ; Mon, 5 Mar 2007 18:35:08 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id CE5BD9FB7E7 for ; Mon, 5 Mar 2007 18:35:00 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id l25MYbe4023643; Mon, 5 Mar 2007 17:34:40 -0500 (EST) To: "David Levy" cc: pgsql-admin@postgresql.org Subject: Re: Cleaning up directory pgsql_tmp ? In-reply-to: <1173131632.569000.26250@j27g2000cwj.googlegroups.com> References: <1173131632.569000.26250@j27g2000cwj.googlegroups.com> Comments: In-reply-to "David Levy" message dated "05 Mar 2007 13:53:52 -0800" Date: Mon, 05 Mar 2007 17:34:37 -0500 Message-ID: <23642.1173134077@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.06 tagged_above=0 required=5 tests=AWL, BAYES_50, SPF_HELO_PASS, SPF_PASS X-Spam-Level: X-Archive-Number: 200703/13 X-Sequence-Number: 24837 "David Levy" 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