X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id AB39311F60A2 for ; Thu, 27 Apr 2006 05:53:14 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 86843-09 for ; Thu, 27 Apr 2006 05:53:04 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail.logix-tt.com (unknown [212.211.145.186]) by postgresql.org (Postfix) with ESMTP id 8381D11F64E0 for ; Thu, 27 Apr 2006 05:53:03 -0300 (ADT) Received: from kingfisher.intern.logix-tt.com (T85ba.t.pppool.de [89.55.133.186]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.logix-tt.com (Postfix) with ESMTP id 11C16656C8 for ; Thu, 27 Apr 2006 10:54:07 +0200 (CEST) Received: from [127.0.0.1] (localhost [127.0.0.1]) by kingfisher.intern.logix-tt.com (Postfix) with ESMTP id 4D980184C160E for ; Thu, 27 Apr 2006 10:53:18 +0200 (CEST) Message-ID: <4450867D.9060908@logix-tt.com> Date: Thu, 27 Apr 2006 10:53:17 +0200 From: Markus Schaber Organization: Logical Tracking and Tracing International AG, Switzerland User-Agent: Debian Thunderbird 1.0.7 (X11/20051017) X-Accept-Language: en-us, en MIME-Version: 1.0 To: PostgreSQL SQL List Subject: Re: Migrating a Database to a new tablespace References: <4444D607.1000309@logix-tt.com> <444CA2F5.4030705@logix-tt.com> <444CA971.3000505@logix-tt.com> <444CB7C9.8060307@logix-tt.com> <20060425001553.GM64695@pervasive.com> <444E208C.20901@logix-tt.com> <19435.1145978379@sss.pgh.pa.us> <444E5359.5010704@logix-tt.com> <22840.1145988798@sss.pgh.pa.us> <444F2AF2.4070906@logix-tt.com> <18451.1146069195@sss.pgh.pa.us> In-Reply-To: <18451.1146069195@sss.pgh.pa.us> X-Enigmail-Version: 0.93.0.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200604/188 X-Sequence-Number: 24997 Hi, Tom, Tom Lane wrote: >>As I said the leftovers are likely to be caused by hard kills and >>backend crashes, so I would not go into deeper analysis, but maybe the >>finding and possibly removing of such leftovers should be half-automated >>to assist server admins. > > It's been discussed. Personally I'm afraid of the idea of automatically > deleting files that seem unreferenced, but having a tool to find them > for manual deletion isn't a bad idea. I also don't like the idea of full automated deletion, that's why I wrote half-automated. I thought of a tool that enumarates suspective files. Then admins can look at the mtime/atime, or move them away and try what happens, or even pipe the output to "xargs rm -rf" if they want. Thanks, Markus -- Markus Schaber | Logical Tracking&Tracing International AG Dipl. Inf. | Software Development GIS Fight against software patents in EU! www.ffii.org www.nosoftwarepatents.org