pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Álvaro Herrera <alvherre@kurilemu.de>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Split out innards of pg_tablespace_location()
Date: Wed, 12 Nov 2025 16:01:30 +0000
Message-ID: <E1vJDHm-006GB1-0A@gemulon.postgresql.org> (raw)

Split out innards of pg_tablespace_location()

This creates a src/backend/catalog/pg_tablespace.c supporting file
containing a new function get_tablespace_location(), which lets the code
underlying pg_tablespace_location() be reused for other purposes.

Author: Manni Wood <manni.wood@enterprisedb.com>
Author: Nishant Sharma <nishant.sharma@enterprisedb.com>
Reviewed-by: Vaibhav Dalvi <vaibhav.dalvi@enterprisedb.com>
Reviewed-by: Ian Lawrence Barwick <barwick@gmail.com>
Reviewed-by: Jim Jones <jim.jones@uni-muenster.de>
Reviewed-by: Álvaro Herrera <alvherre@kurilemu.de>
Discussion: https://postgr.es/m/CAKWEB6rmnmGKUA87Zmq-s=b3Scsnj02C0kObQjnbL2ajfPWGEw@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/877a024902a73732d9f976804aee9699dcbe1d90

Modified Files
--------------
src/backend/catalog/Makefile        |  1 +
src/backend/catalog/meson.build     |  1 +
src/backend/catalog/pg_tablespace.c | 90 +++++++++++++++++++++++++++++++++++++
src/backend/utils/adt/misc.c        | 62 ++-----------------------
src/include/catalog/pg_tablespace.h |  2 +
5 files changed, 98 insertions(+), 58 deletions(-)



Message-ID: <E1vJDHm-006GB1-0A@gemulon.postgresql.org>
Permalink:  ../E1vJDHm-006GB1-0A@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1vJDHm-006GB1-0A@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: alvherre@kurilemu.de, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Split out innards of pg_tablespace_location()
  In-Reply-To: <E1vJDHm-006GB1-0A@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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