Re: mklink of pg_standby

From: Simon Riggs <simon(at)2ndquadrant(dot)com>
To: Hiroshi Saito <z-saito(at)guitar(dot)ocn(dot)ne(dot)jp>
Cc: Dave Page <dpage(at)postgresql(dot)org>, Magnus Hagander <magnus(at)hagander(dot)net>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: mklink of pg_standby
Date: 2008-01-21 07:33:57
Message-ID: 1200900837.4255.591.camel@ebony.site
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, 2008-01-21 at 15:36 +0900, Hiroshi Saito wrote:
> Hi Simon, and Dave,Magnus.
>
> About pg_standby, a link option cause a problem in windows(XP and 2k,2k3).
> It is because the call of mklink is needed. Then, they are the new programs of
> VISTA and 2008. It is CreateSymbolicLink of API of kernel32.lib is equipped
> with mklink.
> http://msdn2.microsoft.com/en-us/library/aa363866.aspx
>
> Therefore, I considered whether it should correspond by the 'Junction' or the 'Hard
> Link' this way and that. However, The addition thought that it was not desirable
> by the reason of the process of evolution functional pg_standby. A copy function
> is no problem. However, I think that it is necessary to write it to a document in
> order to avoid a user's confusion. probably, has that no source code corrects.

Hi Hiroshi,

pg_standby uses "mklink" which defaults to creating symbolic links on
Win2003 and Win2008:

http://technet2.microsoft.com/windowsserver2008/en/library/0ce4df22-2dbc-48fc-9c16-b721ae85f8571033.mspx?mfr=true

I think you're referring to the point that "mklink" is not available for
XP and 2k.

The API call you give is limited to Windows Vista and later, so doesn't
really help us get any closer.

If anybody has a suggestion, I'd be happy to implement, though I don't
have a test rig for Windows.

--
Simon Riggs
2ndQuadrant http://www.2ndQuadrant.com

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Florian Weimer 2008-01-21 07:53:14 Re: [GENERAL] SHA1 on postgres 8.3
Previous Message Hiroshi Saito 2008-01-21 06:36:29 mklink of pg_standby