Re: Win32 link() function - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: Win32 link() function
Date
Msg-id 200906010314.n513ENx16639@momjian.us
Whole thread Raw
In response to Re: Win32 link() function  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Win32 link() function
Re: Win32 link() function
List pgsql-hackers
Tom Lane wrote:
> Bruce Momjian <bruce@momjian.us> writes:
> > pg_migrator needs hard link() capabiity on Win32 to support its --link
> > option.  Can someone create that and hopefully add it to libpgport? 
> 
> AFAIK hard links simply don't exist on Windows.

Magnus showed me this:
http://msdn.microsoft.com/en-us/library/aa363860(VS.85).aspx
BOOL WINAPI CreateHardLink(  __in        LPCTSTR lpFileName,  __in        LPCTSTR lpExistingFileName,  __reserved
LPSECURITY_ATTRIBUTESlpSecurityAttributes);
 

--  Bruce Momjian  <bruce@momjian.us>        http://momjian.us EnterpriseDB
http://enterprisedb.com
 + If your life is a hard drive, Christ can be your backup. +


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Win32 link() function
Next
From: Itagaki Takahiro
Date:
Subject: Re: Win32 link() function