Skip to content

Commit 9270d8d

Browse files
committed
Fix CreateTableSpace() so it will compile without HAVE_SYMLINK.
This has been broken since 9.3 (commit 82b1b21 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
1 parent 0426f34 commit 9270d8d

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+
return tablespaceoid;
386388
#else /* !HAVE_SYMLINK */
387389
ereport(ERROR,
388390
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
389391
errmsg("tablespaces are not supported on this platform")));
392+
return InvalidOid; /* keep compiler quiet */
390393
#endif /* HAVE_SYMLINK */
391-
392-
return tablespaceoid;
393394
}
394395

395396
/*

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy