Allow "in place" tablespaces.
authorThomas Munro <tmunro@postgresql.org>
Fri, 14 Jan 2022 08:27:44 +0000 (21:27 +1300)
committerThomas Munro <tmunro@postgresql.org>
Fri, 14 Jan 2022 11:09:24 +0000 (00:09 +1300)
commit7170f2159fb21b62c263acd458d781e2f3c3f8bb
treebd02aef0987a575154e87b2c75bef4b65a061342
parentc4cc2850f4d16092c2b7b39964c097260935a72c
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
doc/src/sgml/config.sgml
src/backend/commands/tablespace.c
src/backend/utils/misc/guc.c
src/include/commands/tablespace.h