pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andrew Dunstan <andrew@dunslane.net>
Cc: Magnus Hagander <magnus@hagander.net>
Cc: Bruce Momjian <bruce@momjian.us>
Cc: PostgreSQL-documentation <pgsql-docs@postgresql.org>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Subject: Re: [HACKERS] Moving tablespaces
Date: Sun, 04 Dec 2011 12:07:31 -0500
Message-ID: <26148.1323018451@sss.pgh.pa.us> (raw)
In-Reply-To: <4EDBA60D.2050904@dunslane.net>
References: <CABUevEx2xYV==WRxWdMr=mS3Q1orBUvJcXa8AZx_LVbL122g5Q@mail.gmail.com>
	<201112041612.pB4GCHt06225@momjian.us>
	<CABUevEzuRQLddyY2yypiZpjWzzEzz0p66TgzoXGuz+jLxKgdkg@mail.gmail.com>
	<23636.1323016890@sss.pgh.pa.us>
	<4EDBA60D.2050904@dunslane.net>

Andrew Dunstan <andrew@dunslane.net> writes:
> On 12/04/2011 11:41 AM, Tom Lane wrote:
>> 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?

readlink is required by Single Unix Spec v2 (1997), which is what we've
been treating as our baseline expectation for Unix-oid platforms for
awhile now.  Given that we dealt with the Windows side already, I don't
see a problem with making this assumption.  At worst we'd end up needing
a couple more emulations in src/port, since surely there's *some* way to
do it on any platform with symlinks.

			regards, tom lane



view thread (17+ messages)  latest in thread

Message-ID: <26148.1323018451@sss.pgh.pa.us>
Permalink:  ../26148.1323018451@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/26148.1323018451@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-docs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, andrew@dunslane.net, magnus@hagander.net, bruce@momjian.us, pgsql-hackers@postgresql.org
  Subject: Re: [HACKERS] Moving tablespaces
  In-Reply-To: <26148.1323018451@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox