Skip site navigation (1) Skip section navigation (2)

Re: [HACKERS] Moving tablespaces

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Magnus Hagander <magnus(at)hagander(dot)net>, Bruce Momjian <bruce(at)momjian(dot)us>, PostgreSQL-documentation <pgsql-docs(at)postgresql(dot)org>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [HACKERS] Moving tablespaces
Date: 2011-12-04 16:55:41
Message-ID: 4EDBA60D.2050904@dunslane.net (view raw or flat)
Thread:
Lists: pgsql-docspgsql-hackers

On 12/04/2011 11:41 AM, Tom Lane wrote:
>
>> 1) Remove the column. Rely on the symlink. Create a
>> pg_get_tablespace_location(oid) function, that could be used by
>> pg_dumpall and friends, that just reads the symlink.
> Hm, how portable is symlink-reading?  If we can actually do that
> without big headaches, then +1.
>


I wondered that, specifically about Windows junction points, but we seem 
to have support for it already in dirmod.c::pgreadlink(). Surely there's 
no other currently supported platform where it would even be a question?

cheers

andrew

In response to

Responses

pgsql-docs by date

Next:From: Tom LaneDate: 2011-12-04 17:07:31
Subject: Re: [HACKERS] Moving tablespaces
Previous:From: Magnus HaganderDate: 2011-12-04 16:47:11
Subject: Re: Moving tablespaces

pgsql-hackers by date

Next:From: Tom LaneDate: 2011-12-04 17:07:31
Subject: Re: [HACKERS] Moving tablespaces
Previous:From: Andrew DunstanDate: 2011-12-04 16:49:29
Subject: Re: psql setenv command

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group