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

Commit74fc81e

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 parent2960229 commit74fc81e

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
@@ -380,13 +380,14 @@ CreateTableSpace(CreateTableSpaceStmt *stmt)
380380

381381
/* We keep the lock on pg_tablespace until commit */
382382
heap_close(rel,NoLock);
383+
384+
returntablespaceoid;
383385
#else/* !HAVE_SYMLINK */
384386
ereport(ERROR,
385387
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
386388
errmsg("tablespaces are not supported on this platform")));
389+
returnInvalidOid;/* keep compiler quiet */
387390
#endif/* HAVE_SYMLINK */
388-
389-
returntablespaceoid;
390391
}
391392

392393
/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp