aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2015-09-05 16:15:38 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2015-09-05 16:15:58 -0400
commit74fc81ed244b10a6adaade722f2d6cdfaf7c09a8 (patch)
tree776f4acf7cf0ab8cd3ffe3a893954b8b940e4398 /src
parent29602295bacf6e1e59abd6b82734f51d9c107ba8 (diff)
downloadpostgresql-74fc81ed244b10a6adaade722f2d6cdfaf7c09a8.tar.gz
postgresql-74fc81ed244b10a6adaade722f2d6cdfaf7c09a8.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')
-rw-r--r--src/backend/commands/tablespace.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/backend/commands/tablespace.c b/src/backend/commands/tablespace.c
index 096d01aaf0b..5012e8c8888 100644
--- a/src/backend/commands/tablespace.c
+++ b/src/backend/commands/tablespace.c
@@ -380,13 +380,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;
}
/*