> > > OK, I have applied the following patch that uses Cygwin native 
> > > symlink() instead of the Win32 junctions.  The reason for this is 
> > > that Cygwin symlinks work on Win95/98/ME where junction points do 
> > > not
> > 
> > Is this really a Win95/98/ME vs NT distinction or a FAT32 
> vs NTFS distinction?
> > In which case does an NT machine that happens to be using a 
> FAT32 file 
> > system have the same problem?
> 
> I believe it is OS, not file system.

No, it's file system.
Junctions will not work on NT OS:es with FAT32.
Directory junctions require NTFSv5, which is only available on Windows
2000 and newer.


//Magnus

Tue, 12 Oct 2004 09:51:06 +0200
"Magnus Hagander" <mha@sollentuna.net>
Re: open item: tablespace handing in pg_dump/pg_restore

"Magnus Hagander" <mha@sollentuna.net> writes:

> No, it's file system.
> Junctions will not work on NT OS:es with FAT32.
> Directory junctions require NTFSv5, which is only available on Windows
> 2000 and newer.

So then there really has to be a run-time check for this. Either at initdb
time, or at the time the database tries to create the link. You can't know at
compile-time whether the filesystem the database will be on will support
junctions.

-- 
greg


12 Oct 2004 08:01:16 -0400
Greg Stark <gsstark@mit.edu>
Re: open item: tablespace handing in pg_dump/pg_restore
Magnus Hagander wrote:
> > > > OK, I have applied the following patch that uses Cygwin native 
> > > > symlink() instead of the Win32 junctions.  The reason for this is 
> > > > that Cygwin symlinks work on Win95/98/ME where junction points do 
> > > > not
> > > 
> > > Is this really a Win95/98/ME vs NT distinction or a FAT32 
> > vs NTFS distinction?
> > > In which case does an NT machine that happens to be using a 
> > FAT32 file 
> > > system have the same problem?
> > 
> > I believe it is OS, not file system.
> 
> No, it's file system.
> Junctions will not work on NT OS:es with FAT32.
> Directory junctions require NTFSv5, which is only available on Windows
> 2000 and newer.

My point was that junctions don't exist on Win98 no matter what file
system you use.  I don't think the API even exists on those OS's, never
mind what file system you have.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

Tue, 12 Oct 2004 16:33:18 -0400 (EDT)
Bruce Momjian <pgman@candle.pha.pa.us>
Re: open item: tablespace handing in pg_dump/pg_restore