Bruce Momjian wrote:
> Tom Lane wrote:
> > Bruce Momjian <br...@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_ATTRIBUTES lpSecurityAttributes
>       );

Hiroshi Saito emailed me some sample link code I was able to use for
Win32 hard links and I have committed that to pg_migrator CVS.

-- 
  Bruce Momjian  <br...@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + If your life is a hard drive, Christ can be your backup. +

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

Reply via email to