Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 1A09815B6234; Sun, 4 Dec 2011 13:07:48 -0400 (AST) Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RXFXW-0001R0-44; Sun, 04 Dec 2011 17:07:47 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id pB4H7Vlh026149; Sun, 4 Dec 2011 12:07:31 -0500 (EST) To: Andrew Dunstan cc: Magnus Hagander , Bruce Momjian , PostgreSQL-documentation , PostgreSQL-development Subject: Re: [HACKERS] Moving tablespaces In-reply-to: <4EDBA60D.2050904@dunslane.net> References: <201112041612.pB4GCHt06225@momjian.us> <23636.1323016890@sss.pgh.pa.us> <4EDBA60D.2050904@dunslane.net> Comments: In-reply-to Andrew Dunstan message dated "Sun, 04 Dec 2011 11:55:41 -0500" Date: Sun, 04 Dec 2011 12:07:31 -0500 Message-ID: <26148.1323018451@sss.pgh.pa.us> From: Tom Lane X-Pg-Spam-Score: -3.1 (---) X-Archive-Number: 201112/11 X-Sequence-Number: 7118 Andrew Dunstan 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