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 779DA11F6282 for ; Thu, 27 Apr 2006 12:06:29 -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 39402-10 for ; Thu, 27 Apr 2006 12:06:16 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id B788211F6289 for ; Thu, 27 Apr 2006 12:06:15 -0300 (ADT) 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 k3RF6Atl011236; Thu, 27 Apr 2006 11:06:10 -0400 (EDT) To: Markus Schaber cc: PostgreSQL SQL List Subject: Re: Migrating a Database to a new tablespace In-reply-to: <44508A44.4090909@logix-tt.com> References: <200604261635.k3QGZdB06325@candle.pha.pa.us> <44508A44.4090909@logix-tt.com> Comments: In-reply-to Markus Schaber message dated "Thu, 27 Apr 2006 11:09:24 +0200" Date: Thu, 27 Apr 2006 11:06:09 -0400 Message-ID: <11235.1146150369@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200604/192 X-Sequence-Number: 25001 Markus Schaber writes: > Bruce Momjian wrote: >> 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.* > It looks nice, but I would not like automatic deletion (or only optional > or configurable), there might be valid reasons for "alien" files to > exist. (README files for admins to communicate what this directory is > used for, MacOS ressource forks, Reiser4 special files etc...) > What about putting the identification code in a set returning function > or view that can be called by the admin. Yeah, one thing I never liked about the previously proposed patches was that they were tied to postmaster start/restart. It'd be better to have an external tool that could be invoked on demand. Maybe something close to oid2name. regards, tom lane