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=b3scsnj02c0kobqjnbl2ajfpw...@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(-)

Reply via email to