Re: [PATCH] Add pg_get_tablespace_ddl() function to reconstruct CREATE TABLESPACE statement

From: Álvaro Herrera <alvherre(at)kurilemu(dot)de>
To: Nishant Sharma <nishant(dot)sharma(at)enterprisedb(dot)com>
Cc: Jim Jones <jim(dot)jones(at)uni-muenster(dot)de>, Manni Wood <manni(dot)wood(at)enterprisedb(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: [PATCH] Add pg_get_tablespace_ddl() function to reconstruct CREATE TABLESPACE statement
Date: 2025-11-07 09:58:31
Message-ID: 202511051258.3j3ljaokhlqm@alvherre.pgsql
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 2025-Nov-05, Nishant Sharma wrote:

> Thanks Álvaro for the review comments on v4!
>
> PFA, v5 patch set. I have included all your review comments.

Great, thanks.

I think adding the get_tablespace_location_string function in
ruleutils.c makes little sense -- I would say it belongs in
src/backend/catalog/pg_tablespace.c. Since this file happens not to
exist, you can create it.

--
Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/
"Someone said that it is at least an order of magnitude more work to do
production software than a prototype. I think he is wrong by at least
an order of magnitude." (Brian Kernighan)

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Xuneng Zhou 2025-11-07 10:10:25 Re: Add tab completion support for WAIT FOR command
Previous Message Arseniy Mukhin 2025-11-07 09:41:48 Re: LISTEN/NOTIFY bug: VACUUM sets frozenxid past a xid in async queue