mirror of
https://github.com/postgres/postgres.git
synced 2025-06-14 18:42:34 +03:00
Fix CreateTableSpace() so it will compile without HAVE_SYMLINK.
This has been broken since 9.3 (commit 82b1b213ca
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
This commit is contained in:
@ -380,13 +380,14 @@ CreateTableSpace(CreateTableSpaceStmt *stmt)
|
|||||||
|
|
||||||
/* We keep the lock on pg_tablespace until commit */
|
/* We keep the lock on pg_tablespace until commit */
|
||||||
heap_close(rel, NoLock);
|
heap_close(rel, NoLock);
|
||||||
|
|
||||||
|
return tablespaceoid;
|
||||||
#else /* !HAVE_SYMLINK */
|
#else /* !HAVE_SYMLINK */
|
||||||
ereport(ERROR,
|
ereport(ERROR,
|
||||||
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
|
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
|
||||||
errmsg("tablespaces are not supported on this platform")));
|
errmsg("tablespaces are not supported on this platform")));
|
||||||
|
return InvalidOid; /* keep compiler quiet */
|
||||||
#endif /* HAVE_SYMLINK */
|
#endif /* HAVE_SYMLINK */
|
||||||
|
|
||||||
return tablespaceoid;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user