Index: src/backend/commands/dbcommands.c =================================================================== RCS file: /cvsroot/pgsql-server/src/backend/commands/dbcommands.c,v retrieving revision 1.112 diff -c -c -r1.112 dbcommands.c *** src/backend/commands/dbcommands.c 4 Apr 2003 20:42:12 -0000 1.112 --- src/backend/commands/dbcommands.c 4 May 2003 04:32:59 -0000 *************** *** 174,179 **** --- 174,184 ---- /* don't call this in a transaction block */ PreventTransactionChain((void *) stmt, "CREATE DATABASE"); + #ifdef WIN32 + if (dbpath != NULL) /* platform has no symlinks */ + elog(ERROR, "CREATE DATABASE: may not use an alternate location on this platform"); + #endif + /* * Check for db name conflict. There is a race condition here, since * another backend could create the same DB name before we commit. *************** *** 296,302 **** --- 301,309 ---- /* Make the symlink, if needed */ if (alt_loc) { + #ifndef WIN32 /* already throws error on WIN32 above */ if (symlink(alt_loc, nominal_loc) != 0) + #endif elog(ERROR, "CREATE DATABASE: could not link '%s' to '%s': %m", nominal_loc, alt_loc); }