Skip to content

Commit 74fc81e

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 2960229 commit 74fc81e

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+
return tablespaceoid;
383385
#else /* !HAVE_SYMLINK */
384386
ereport(ERROR,
385387
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
386388
errmsg("tablespaces are not supported on this platform")));
389+
return InvalidOid; /* keep compiler quiet */
387390
#endif /* HAVE_SYMLINK */
388-
389-
return tablespaceoid;
390391
}
391392

392393
/*

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