pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Bruce Momjian <bruce@momjian.us>
To: Arnaud L. <arnaud.listes@codata.eu>
Cc: PG-General Mailing List <pgsql-general@postgresql.org>
Subject: Re: pg_upgrade --link on Windows
Date: Fri, 9 Jun 2017 07:24:03 -0700
Message-ID: <6a638c60-90bb-4921-8ee4-5fdad68f8b09@aklaver.com> (raw)
In-Reply-To: <20170609140724.GB21215@momjian.us>
References: <8da3dbd9-7daf-5589-0cc8-0eede930a492@codata.eu>
	<20170609140724.GB21215@momjian.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-general>

On 06/09/2017 07:07 AM, Bruce Momjian wrote:
> On Fri, Jun  9, 2017 at 12:00:56PM +0200, Arnaud L. wrote:
>> Hi
>>
>> The pg_upgrade documentation for PostgreSQL 9.6 states that --link will use
>> junction points on Windows.
>> Shouldn't it rather user hard-links ?
>> If I'm not mistaken, with junction points (i.e. soft-links to directories),
>> the old data dir cannot be removed.
>> With hard-links to file, we can get rid of the old data dir once we are sure
>> that the upgrade is fine.
> 
> I was told junction points on Windows were hard links and no one has
> ever complained about not being able to remove them.
> 

https://msdn.microsoft.com/en-us/library/windows/desktop/aa365006(v=vs.85).aspx

Seems to me the difference is hard links point to file, junctions to 
directories.

So if I am following:

https://en.wikipedia.org/wiki/NTFS_junction_point#Creating_or_deleting_a_junction_point

You remove the junction and then the directory it points to.

-- 
Adrian Klaver
adrian.klaver@aklaver.com


-- 
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general



view thread (14+ messages)  latest in thread

Message-ID: <6a638c60-90bb-4921-8ee4-5fdad68f8b09@aklaver.com>
Permalink:  ../6a638c60-90bb-4921-8ee4-5fdad68f8b09@aklaver.com/
Also on:    postgresql.org/message-id/6a638c60-90bb-4921-8ee4-5fdad68f8b09@aklaver.com

 · 

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: adrian.klaver@aklaver.com, bruce@momjian.us, arnaud.listes@codata.eu, pgsql-general@postgresql.org
  Subject: Re: pg_upgrade --link on Windows
  In-Reply-To: <6a638c60-90bb-4921-8ee4-5fdad68f8b09@aklaver.com>

* 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