Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9270d8d

Browse files
committed
Fix CreateTableSpace() so it will compile without HAVE_SYMLINK.
This has been broken since 9.3 (commit82b1b21 to be exact),which suggests that nobody is any longer using a Windows build system thatdoesn't provide a symlink emulation. Still, it's wrong on its own terms,so repair.YUriy Zhuravlev
1 parent0426f34 commit9270d8d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎src/backend/commands/tablespace.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -383,13 +383,14 @@ CreateTableSpace(CreateTableSpaceStmt *stmt)
383383

384384
/* We keep the lock on pg_tablespace until commit */
385385
heap_close(rel,NoLock);
386+
387+
returntablespaceoid;
386388
#else/* !HAVE_SYMLINK */
387389
ereport(ERROR,
388390
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
389391
errmsg("tablespaces are not supported on this platform")));
392+
returnInvalidOid;/* keep compiler quiet */
390393
#endif/* HAVE_SYMLINK */
391-
392-
returntablespaceoid;
393394
}
394395

395396
/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp