Index: tablespace.c =================================================================== RCS file: /projects/cvsroot/pgsql-server/src/backend/commands/tablespace.c,v retrieving revision 1.11 diff -u -b -r1.11 tablespace.c --- tablespace.c 30 Aug 2004 02:54:38 -0000 1.11 +++ tablespace.c 4 Oct 2004 18:37:13 -0000 @@ -349,7 +349,11 @@ linkloc = (char *) palloc(strlen(DataDir) + 11 + 10 + 1); sprintf(linkloc, "%s/pg_tblspc/%u", DataDir, tablespaceoid); +#ifdef __CYGWIN__ + if (link(location, linkloc) < 0) +#else if (symlink(location, linkloc) < 0) +#endif ereport(ERROR, (errcode_for_file_access(), errmsg("could not create symbolic link \"%s\": %m", @@ -976,7 +980,11 @@ linkloc = (char *) palloc(strlen(DataDir) + 11 + 10 + 1); sprintf(linkloc, "%s/pg_tblspc/%u", DataDir, xlrec->ts_id); +#ifdef __CYGWIN__ + if (link(location, linkloc) < 0) +#else if (symlink(location, linkloc) < 0) +#endif { if (errno != EEXIST) ereport(ERROR,