X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id 2AA8730EDDD for ; Mon, 16 Jun 2003 19:22:25 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 54014-03 for ; Mon, 16 Jun 2003 16:22:14 -0300 (ADT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id 68B3730EF90 for ; Mon, 16 Jun 2003 16:22:14 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.9/8.12.9) with ESMTP id h5GJMCU6006101; Mon, 16 Jun 2003 15:22:12 -0400 (EDT) To: Markus Bertheau Cc: pgsql-admin@postgresql.org Subject: Re: how do I get rid of huge sorttemp files? In-reply-to: <1055777279.2213.2.camel@fluor> References: <1055777279.2213.2.camel@fluor> Comments: In-reply-to Markus Bertheau message dated "16 Jun 2003 17:27:59 +0200" Date: Mon, 16 Jun 2003 15:22:11 -0400 Message-ID: <6100.1055791331@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200306/178 X-Sequence-Number: 9169 Markus Bertheau 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