Split out innards of pg_tablespace_location()
authorÁlvaro Herrera <[email protected]>
Wed, 12 Nov 2025 15:39:55 +0000 (16:39 +0100)
committerÁlvaro Herrera <[email protected]>
Wed, 12 Nov 2025 15:39:55 +0000 (16:39 +0100)
commit877a024902a73732d9f976804aee9699dcbe1d90
tree4b131e5c916c5b113c48ba58ca50edc51ba25d1b
parenta1f7f91be2c24c0a9e8d5b9e75bc43437d5476c2
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 <[email protected]>
Author: Nishant Sharma <[email protected]>
Reviewed-by: Vaibhav Dalvi <[email protected]>
Reviewed-by: Ian Lawrence Barwick <[email protected]>
Reviewed-by: Jim Jones <[email protected]>
Reviewed-by: Álvaro Herrera <[email protected]>
Discussion: https://postgr.es/m/CAKWEB6rmnmGKUA87Zmq-s=b3Scsnj02C0kObQjnbL2ajfPWGEw@mail.gmail.com
src/backend/catalog/Makefile
src/backend/catalog/meson.build
src/backend/catalog/pg_tablespace.c [new file with mode: 0644]
src/backend/utils/adt/misc.c
src/include/catalog/pg_tablespace.h