diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2015-09-05 16:15:38 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2015-09-05 16:15:38 -0400 |
commit | 9270d8db9a1cd6465e21215e6451b552995fcb08 (patch) | |
tree | aa706900ad6af81157950cccf5c733dbd7e8efed /src/backend/commands/tablespace.c | |
parent | 0426f349effb6bde2061f3398a71db7180c97dd9 (diff) | |
download | postgresql-9270d8db9a1cd6465e21215e6451b552995fcb08.tar.gz postgresql-9270d8db9a1cd6465e21215e6451b552995fcb08.zip |
Fix CreateTableSpace() so it will compile without HAVE_SYMLINK.
This has been broken since 9.3 (commit 82b1b213cad3a69c to be exact),
which suggests that nobody is any longer using a Windows build system that
doesn't provide a symlink emulation. Still, it's wrong on its own terms,
so repair.
YUriy Zhuravlev
Diffstat (limited to 'src/backend/commands/tablespace.c')
-rw-r--r-- | src/backend/commands/tablespace.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/backend/commands/tablespace.c b/src/backend/commands/tablespace.c index ff0d904b7a8..7588b7ae264 100644 --- a/src/backend/commands/tablespace.c +++ b/src/backend/commands/tablespace.c @@ -383,13 +383,14 @@ CreateTableSpace(CreateTableSpaceStmt *stmt) /* We keep the lock on pg_tablespace until commit */ heap_close(rel, NoLock); + + return tablespaceoid; #else /* !HAVE_SYMLINK */ ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), errmsg("tablespaces are not supported on this platform"))); + return InvalidOid; /* keep compiler quiet */ #endif /* HAVE_SYMLINK */ - - return tablespaceoid; } /* |