X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 516EAD8C53 for ; Thu, 3 Nov 2005 23:08:53 -0400 (AST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 18987-02 for ; Fri, 4 Nov 2005 03:08:47 +0000 (GMT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from candle.pha.pa.us (candle.pha.pa.us [64.139.89.126]) by svr1.postgresql.org (Postfix) with ESMTP id D5D3DD8C41 for ; Thu, 3 Nov 2005 23:08:49 -0400 (AST) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id jA438tp20814; Thu, 3 Nov 2005 22:08:55 -0500 (EST) From: Bruce Momjian Message-Id: <200511040308.jA438tp20814@candle.pha.pa.us> Subject: Re: Deleting old files from pgsql_tmp In-Reply-To: <4f34febc0511031830w31e6f3d0mdd5470c801860052@mail.gmail.com> To: John Barham Date: Thu, 3 Nov 2005 22:08:55 -0500 (EST) Cc: pgsql-admin@postgresql.org X-Mailer: ELM [version 2.4ME+ PL121 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.013 required=5 tests=[AWL=0.013] X-Spam-Score: 0.013 X-Spam-Level: X-Archive-Number: 200511/40 X-Sequence-Number: 19413 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