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 1515111F60E3 for ; Wed, 26 Apr 2006 13:36:04 -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 45814-08 for ; Wed, 26 Apr 2006 13:35:42 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from candle.pha.pa.us (candle.pha.pa.us [70.90.9.53]) by postgresql.org (Postfix) with ESMTP id DF03411F60B0 for ; Wed, 26 Apr 2006 13:35:41 -0300 (ADT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id k3QGZdB06325; Wed, 26 Apr 2006 12:35:39 -0400 (EDT) From: Bruce Momjian Message-Id: <200604261635.k3QGZdB06325@candle.pha.pa.us> Subject: Re: Migrating a Database to a new tablespace In-Reply-To: <18451.1146069195@sss.pgh.pa.us> To: Tom Lane Date: Wed, 26 Apr 2006 12:35:39 -0400 (EDT) CC: Markus Schaber , PostgreSQL SQL List 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: Maia Mailguard 1.0.1 X-Archive-Number: 200604/182 X-Sequence-Number: 24991 Tom Lane wrote: > Markus Schaber writes: > > 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 think Bruce had a prototype > patch at one point --- not sure what the status is. > I have work someone did in the past. I just need to be updated to deal with tablespaces. ftp://candle.pha.pa.us/pub/postgresql/mypatches/checkfile.* Let me know if you want details. -- Bruce Momjian http://candle.pha.pa.us EnterpriseDB http://www.enterprisedb.com + If your life is a hard drive, Christ can be your backup. +