Re: Tablespaces - Mailing list pgsql-hackers

From Oliver Elphick
Subject Re: Tablespaces
Date
Msg-id 1078315131.23531.115.camel@cerberus.lfix.co.uk
Whole thread Raw
In response to Re: Tablespaces  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Tablespaces  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Tablespaces  (Barry Lind <blind@xythos.com>)
List pgsql-hackers
On Wed, 2004-03-03 at 04:59, Tom Lane wrote:
>    What might make sense is some sort of marker file in a
> tablespace directory that links back to the owning $PGDATA directory.
> CREATE TABLESPACE should create this, or reject if it already exists.

It will not be enough for the marker to list the path of the parent
$PGDATA, since that path might get changed by system administration
action.  The marker should contain some sort of unique string which
would match the same string somewhere in $PGDATA.  Then, if either
tablespace or $PGDATA were moved, it would be possible to tie the two
back together.  It wouldn't be an issue on most normal systems, but
might be of crucial importance for an ISP running numerous separate
clusters.
-- 
Oliver Elphick <olly@lfix.co.uk>
LFIX Ltd



pgsql-hackers by date:

Previous
From: "Zeugswetter Andreas SB SD"
Date:
Subject: Re: [pgsql-hackers-win32] Tablespaces
Next
From: Bruce Momjian
Date:
Subject: Re: [pgsql-hackers-win32] Tablespaces