Re: [HACKERS] Win32 link() function

2009-06-02 Thread Bruce Momjian
bruce wrote: > Tom Lane wrote: > > Bruce Momjian writes: > > > Tom Lane wrote: > > >> (Come to think of it, --link can fail on Unix too, if the user tries to > > >> put the new database on a different filesystem. Have you got guards in > > >> there to make sure this is discovered before the point

Re: [HACKERS] Win32 link() function

2009-06-01 Thread Bruce Momjian
Bruce Momjian wrote: > Tom Lane wrote: > > Bruce Momjian 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 th

Re: [HACKERS] Win32 link() function

2009-05-31 Thread Bruce Momjian
Bruce Momjian wrote: > Tom Lane wrote: > > Bruce Momjian writes: > > > Tom Lane wrote: > > >> (Come to think of it, --link can fail on Unix too, if the user tries to > > >> put the new database on a different filesystem. Have you got guards in > > >> there to make sure this is discovered before t

Re: [HACKERS] Win32 link() function

2009-05-31 Thread Bruce Momjian
Tom Lane wrote: > Bruce Momjian writes: > > Tom Lane wrote: > >> (Come to think of it, --link can fail on Unix too, if the user tries to > >> put the new database on a different filesystem. Have you got guards in > >> there to make sure this is discovered before the point of no return?) > > > Of

Re: [HACKERS] Win32 link() function

2009-05-31 Thread Bruce Momjian
Bruce Momjian wrote: > Tom Lane wrote: > > Bruce Momjian writes: > > > Tom Lane wrote: > > >> AFAIK hard links simply don't exist on Windows. > > > > > Magnus showed me this: > > > http://msdn.microsoft.com/en-us/library/aa363860(VS.85).aspx > > > > Hmm, interesting. Are we requiring our DBs

Re: [HACKERS] Win32 link() function

2009-05-31 Thread Tom Lane
Bruce Momjian writes: > Tom Lane wrote: >> (Come to think of it, --link can fail on Unix too, if the user tries to >> put the new database on a different filesystem. Have you got guards in >> there to make sure this is discovered before the point of no return?) > Of course: > ... > though you ha

Re: [HACKERS] Win32 link() function

2009-05-31 Thread Bruce Momjian
Tom Lane wrote: > Bruce Momjian writes: > >> Tom Lane wrote: > >>> Hmm, interesting. Are we requiring our DBs to be on NTFS already? > > > Oh, yea, we only support tablespaces on Win32 using NTFS. > > Well, the important point there is that we fail gracefully if you try to > use tablespaces whe

Re: [HACKERS] Win32 link() function

2009-05-31 Thread Tom Lane
Bruce Momjian writes: >> Tom Lane wrote: >>> Hmm, interesting. Are we requiring our DBs to be on NTFS already? > Oh, yea, we only support tablespaces on Win32 using NTFS. Well, the important point there is that we fail gracefully if you try to use tablespaces when not on NTFS. So you're going

Re: [HACKERS] Win32 link() function

2009-05-31 Thread Bruce Momjian
Tom Lane wrote: > Bruce Momjian writes: > > Tom Lane wrote: > >> AFAIK hard links simply don't exist on Windows. > > > Magnus showed me this: > > http://msdn.microsoft.com/en-us/library/aa363860(VS.85).aspx > > Hmm, interesting. Are we requiring our DBs to be on NTFS already? I think we re

Re: [HACKERS] Win32 link() function

2009-05-31 Thread Tom Lane
Bruce Momjian writes: > Tom Lane wrote: >> AFAIK hard links simply don't exist on Windows. > Magnus showed me this: > http://msdn.microsoft.com/en-us/library/aa363860(VS.85).aspx Hmm, interesting. Are we requiring our DBs to be on NTFS already? What are the implications for Cygwin?

Re: [HACKERS] Win32 link() function

2009-05-31 Thread Itagaki Takahiro
Bruce Momjian wrote: > pg_migrator needs hard link() capabiity on Win32 to support its --link > option. Can someone create that and hopefully add it to libpgport? > libpgport currently only has symlink capability for Win32. Can we use CreateHardLink() ? http://msdn.microsoft.com/en-us/library

Re: [HACKERS] Win32 link() function

2009-05-31 Thread Bruce Momjian
Tom Lane wrote: > Bruce Momjian 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.co

Re: [HACKERS] Win32 link() function

2009-05-31 Thread Tom Lane
Bruce Momjian 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. regards, tom lane -- Sent via pgsql-hackers mailing list

[HACKERS] Win32 link() function

2009-05-31 Thread Bruce Momjian
pg_migrator needs hard link() capabiity on Win32 to support its --link option. Can someone create that and hopefully add it to libpgport? libpgport currently only has symlink capability for Win32. -- Bruce Momjian http://momjian.us EnterpriseDB http://en