summaryrefslogtreecommitdiff
path: root/src/backend/commands/tablespace.c
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:16:02 -0400
commite9bacfca442f828dec373ef4ed9bf6268ec38ed7 (patch)
treebeed8dedb9229b45b958d62671d31545730a9a19 /src/backend/commands/tablespace.c
parent658ec626406342211837280a6eb0f836f7d14429 (diff)
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.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/backend/commands/tablespace.c b/src/backend/commands/tablespace.c
index 01ba326a43b..44aa05ed23f 100644
--- a/src/backend/commands/tablespace.c
+++ b/src/backend/commands/tablespace.c
@@ -366,13 +366,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;
}
/*