diff options
| author | Thomas Munro | 2022-01-14 08:27:44 +0000 |
|---|---|---|
| committer | Thomas Munro | 2022-01-14 11:09:24 +0000 |
| commit | 7170f2159fb21b62c263acd458d781e2f3c3f8bb (patch) | |
| tree | bd02aef0987a575154e87b2c75bef4b65a061342 /src/include/commands | |
| parent | c4cc2850f4d16092c2b7b39964c097260935a72c (diff) | |
Allow "in place" tablespaces.
Provide a developer-only GUC allow_in_place_tablespaces, disabled by
default. When enabled, tablespaces can be created with an empty
LOCATION string, meaning that they should be created as a directory
directly beneath pg_tblspc. This can be used for new testing scenarios,
in a follow-up patch. Not intended for end-user usage, since it might
confuse backup tools that expect symlinks.
Reviewed-by: Andres Freund <andres@anarazel.de>
Reviewed-by: Michael Paquier <michael@paquier.xyz>
Discussion: https://postgr.es/m/CA%2BhUKGKpRWQ9SxdxxDmTBCJoR0YnFpMBe7kyzY8SUQk%2BHeskxg%40mail.gmail.com
Diffstat (limited to 'src/include/commands')
| -rw-r--r-- | src/include/commands/tablespace.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/commands/tablespace.h b/src/include/commands/tablespace.h index 97b0be35e52..323528ebb83 100644 --- a/src/include/commands/tablespace.h +++ b/src/include/commands/tablespace.h @@ -19,6 +19,8 @@ #include "lib/stringinfo.h" #include "nodes/parsenodes.h" +extern bool allow_in_place_tablespaces; + /* XLOG stuff */ #define XLOG_TBLSPC_CREATE 0x00 #define XLOG_TBLSPC_DROP 0x10 |
