pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Allow "in place" tablespaces.
6+ messages / 2 participants
[nested] [flat]

* pgsql: Allow "in place" tablespaces.
@ 2022-01-14 11:24 Thomas Munro <tmunro@postgresql.org>
  0 siblings, 0 replies; 6+ messages in thread

From: Thomas Munro @ 2022-01-14 11:24 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/7170f2159fb21b62c263acd458d781e2f3c3f8bb

Modified Files
--------------
doc/src/sgml/config.sgml          | 19 +++++++++++++++++++
src/backend/commands/tablespace.c | 39 ++++++++++++++++++++++++++++++++-------
src/backend/utils/misc/guc.c      | 12 ++++++++++++
src/include/commands/tablespace.h |  2 ++
4 files changed, 65 insertions(+), 7 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Allow "in place" tablespaces.
@ 2022-07-27 06:03 Alvaro Herrera <alvherre@alvh.no-ip.org>
  0 siblings, 0 replies; 6+ messages in thread

From: Alvaro Herrera @ 2022-07-27 06:03 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Allow "in place" tablespaces.

This is a backpatch to branches 10-14 of the following commits:

7170f2159fb2 Allow "in place" tablespaces.
c6f2f01611d4 Fix pg_basebackup with in-place tablespaces.
f6f0db4d6240 Fix pg_tablespace_location() with in-place tablespaces
7a7cd84893e0 doc: Remove mention to in-place tablespaces for pg_tablespace_location()
5344723755bd Remove unnecessary Windows-specific basebackup code.

In-place tablespaces were introduced as a testing helper mechanism, but
they are going to be used for a bugfix in WAL replay to be backpatched
to all stable branches.

I (Álvaro) had to adjust some code to account for lack of
get_dirent_type() in branches prior to 14.

Author: Thomas Munro <thomas.munro@gmail.com>
Author: Michaël Paquier <michael@paquier.xyz>
Author: Álvaro Herrera <alvherre@alvh.no-ip.org>
Discussion: https://postgr.es/m/20220722081858.omhn2in5zt3g4nek@alvherre.pgsql

Branch
------
REL_14_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/961cab0a5a90d449a64a71912b324d7e7548619b

Modified Files
--------------
doc/src/sgml/config.sgml          | 19 +++++++++++++++++++
src/backend/access/transam/xlog.c |  9 +++++++++
src/backend/commands/tablespace.c | 39 ++++++++++++++++++++++++++++++++-------
src/backend/utils/adt/misc.c      | 29 +++++++++++++++++++++++++++++
src/backend/utils/misc/guc.c      | 12 ++++++++++++
src/include/commands/tablespace.h |  2 ++
6 files changed, 103 insertions(+), 7 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Allow "in place" tablespaces.
@ 2022-07-27 06:03 Alvaro Herrera <alvherre@alvh.no-ip.org>
  0 siblings, 0 replies; 6+ messages in thread

From: Alvaro Herrera @ 2022-07-27 06:03 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Allow "in place" tablespaces.

This is a backpatch to branches 10-14 of the following commits:

7170f2159fb2 Allow "in place" tablespaces.
c6f2f01611d4 Fix pg_basebackup with in-place tablespaces.
f6f0db4d6240 Fix pg_tablespace_location() with in-place tablespaces
7a7cd84893e0 doc: Remove mention to in-place tablespaces for pg_tablespace_location()
5344723755bd Remove unnecessary Windows-specific basebackup code.

In-place tablespaces were introduced as a testing helper mechanism, but
they are going to be used for a bugfix in WAL replay to be backpatched
to all stable branches.

I (Álvaro) had to adjust some code to account for lack of
get_dirent_type() in branches prior to 14.

Author: Thomas Munro <thomas.munro@gmail.com>
Author: Michaël Paquier <michael@paquier.xyz>
Author: Álvaro Herrera <alvherre@alvh.no-ip.org>
Discussion: https://postgr.es/m/20220722081858.omhn2in5zt3g4nek@alvherre.pgsql

Branch
------
REL_13_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/16e7a8fd8e97325c13c297f00eaa05a9ed739be5

Modified Files
--------------
doc/src/sgml/config.sgml          | 19 +++++++++++++++++++
src/backend/access/transam/xlog.c | 20 ++++++++++++++++++++
src/backend/commands/tablespace.c | 39 ++++++++++++++++++++++++++++++++-------
src/backend/utils/adt/misc.c      | 29 +++++++++++++++++++++++++++++
src/backend/utils/misc/guc.c      | 12 ++++++++++++
src/include/commands/tablespace.h |  2 ++
6 files changed, 114 insertions(+), 7 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Allow "in place" tablespaces.
@ 2022-07-27 06:03 Alvaro Herrera <alvherre@alvh.no-ip.org>
  0 siblings, 0 replies; 6+ messages in thread

From: Alvaro Herrera @ 2022-07-27 06:03 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Allow "in place" tablespaces.

This is a backpatch to branches 10-14 of the following commits:

7170f2159fb2 Allow "in place" tablespaces.
c6f2f01611d4 Fix pg_basebackup with in-place tablespaces.
f6f0db4d6240 Fix pg_tablespace_location() with in-place tablespaces
7a7cd84893e0 doc: Remove mention to in-place tablespaces for pg_tablespace_location()
5344723755bd Remove unnecessary Windows-specific basebackup code.

In-place tablespaces were introduced as a testing helper mechanism, but
they are going to be used for a bugfix in WAL replay to be backpatched
to all stable branches.

I (Álvaro) had to adjust some code to account for lack of
get_dirent_type() in branches prior to 14.

Author: Thomas Munro <thomas.munro@gmail.com>
Author: Michaël Paquier <michael@paquier.xyz>
Author: Álvaro Herrera <alvherre@alvh.no-ip.org>
Discussion: https://postgr.es/m/20220722081858.omhn2in5zt3g4nek@alvherre.pgsql

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/ca347f5433ed036ae82cc0939d235b2bda9b77fe

Modified Files
--------------
doc/src/sgml/config.sgml          | 19 +++++++++++++++++++
src/backend/access/transam/xlog.c | 20 ++++++++++++++++++++
src/backend/commands/tablespace.c | 39 ++++++++++++++++++++++++++++++++-------
src/backend/utils/adt/misc.c      | 29 +++++++++++++++++++++++++++++
src/backend/utils/misc/guc.c      | 12 ++++++++++++
src/include/commands/tablespace.h |  2 ++
6 files changed, 114 insertions(+), 7 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Allow "in place" tablespaces.
@ 2022-07-27 06:03 Alvaro Herrera <alvherre@alvh.no-ip.org>
  0 siblings, 0 replies; 6+ messages in thread

From: Alvaro Herrera @ 2022-07-27 06:03 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Allow "in place" tablespaces.

This is a backpatch to branches 10-14 of the following commits:

7170f2159fb2 Allow "in place" tablespaces.
c6f2f01611d4 Fix pg_basebackup with in-place tablespaces.
f6f0db4d6240 Fix pg_tablespace_location() with in-place tablespaces
7a7cd84893e0 doc: Remove mention to in-place tablespaces for pg_tablespace_location()
5344723755bd Remove unnecessary Windows-specific basebackup code.

In-place tablespaces were introduced as a testing helper mechanism, but
they are going to be used for a bugfix in WAL replay to be backpatched
to all stable branches.

I (Álvaro) had to adjust some code to account for lack of
get_dirent_type() in branches prior to 14.

Author: Thomas Munro <thomas.munro@gmail.com>
Author: Michaël Paquier <michael@paquier.xyz>
Author: Álvaro Herrera <alvherre@alvh.no-ip.org>
Discussion: https://postgr.es/m/20220722081858.omhn2in5zt3g4nek@alvherre.pgsql

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/258c896418bf972728d60e6b7d197303942d31aa

Modified Files
--------------
doc/src/sgml/config.sgml          | 19 +++++++++++++++++++
src/backend/access/transam/xlog.c | 20 ++++++++++++++++++++
src/backend/commands/tablespace.c | 39 ++++++++++++++++++++++++++++++++-------
src/backend/utils/adt/misc.c      | 29 +++++++++++++++++++++++++++++
src/backend/utils/misc/guc.c      | 12 ++++++++++++
src/include/commands/tablespace.h |  2 ++
6 files changed, 114 insertions(+), 7 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Allow "in place" tablespaces.
@ 2022-07-27 06:03 Alvaro Herrera <alvherre@alvh.no-ip.org>
  0 siblings, 0 replies; 6+ messages in thread

From: Alvaro Herrera @ 2022-07-27 06:03 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Allow "in place" tablespaces.

This is a backpatch to branches 10-14 of the following commits:

7170f2159fb2 Allow "in place" tablespaces.
c6f2f01611d4 Fix pg_basebackup with in-place tablespaces.
f6f0db4d6240 Fix pg_tablespace_location() with in-place tablespaces
7a7cd84893e0 doc: Remove mention to in-place tablespaces for pg_tablespace_location()
5344723755bd Remove unnecessary Windows-specific basebackup code.

In-place tablespaces were introduced as a testing helper mechanism, but
they are going to be used for a bugfix in WAL replay to be backpatched
to all stable branches.

I (Álvaro) had to adjust some code to account for lack of
get_dirent_type() in branches prior to 14.

Author: Thomas Munro <thomas.munro@gmail.com>
Author: Michaël Paquier <michael@paquier.xyz>
Author: Álvaro Herrera <alvherre@alvh.no-ip.org>
Discussion: https://postgr.es/m/20220722081858.omhn2in5zt3g4nek@alvherre.pgsql

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/7bdbbb87340f4cb9f262320a28be8f87d4c38308

Modified Files
--------------
doc/src/sgml/config.sgml          | 19 +++++++++++++++++++
src/backend/access/transam/xlog.c | 20 ++++++++++++++++++++
src/backend/commands/tablespace.c | 39 ++++++++++++++++++++++++++++++++-------
src/backend/utils/adt/misc.c      | 29 +++++++++++++++++++++++++++++
src/backend/utils/misc/guc.c      | 12 ++++++++++++
src/include/commands/tablespace.h |  2 ++
6 files changed, 114 insertions(+), 7 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread


end of thread, other threads:[~2022-07-27 06:03 UTC | newest]

Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2022-01-14 11:24 pgsql: Allow "in place" tablespaces. Thomas Munro <tmunro@postgresql.org>
2022-07-27 06:03 pgsql: Allow "in place" tablespaces. Alvaro Herrera <alvherre@alvh.no-ip.org>
2022-07-27 06:03 pgsql: Allow "in place" tablespaces. Alvaro Herrera <alvherre@alvh.no-ip.org>
2022-07-27 06:03 pgsql: Allow "in place" tablespaces. Alvaro Herrera <alvherre@alvh.no-ip.org>
2022-07-27 06:03 pgsql: Allow "in place" tablespaces. Alvaro Herrera <alvherre@alvh.no-ip.org>
2022-07-27 06:03 pgsql: Allow "in place" tablespaces. Alvaro Herrera <alvherre@alvh.no-ip.org>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox