Re: [PATCH] Add pg_get_database_ddl() function to reconstruct CREATE DATABASE statement - Mailing list pgsql-hackers

From Álvaro Herrera
Subject Re: [PATCH] Add pg_get_database_ddl() function to reconstruct CREATE DATABASE statement
Date
Msg-id 202603051452.d7hp2zb5e676@alvherre.pgsql
Whole thread Raw
In response to Re: [PATCH] Add pg_get_database_ddl() function to reconstruct CREATE DATABASE statement  (Rafia Sabih <rafia.pghackers@gmail.com>)
List pgsql-hackers
On 2026-Mar-05, Rafia Sabih wrote:

> Also, the option strategy is missing in the output, is it deliberate?
> If yes, why?

Yeah, the copying strategy is not integral part of the resulting
database: we don't store anywhere, how exactly the database was copied.
So it cannot be reproduced, and therefore it would be pointless to try
to emit something; or at least I cannot imagine a principled reason to
choose any one particular strategy here.

-- 
Álvaro Herrera               48°01'N 7°57'E  —  https://www.EnterpriseDB.com/
"Por suerte hoy explotó el califont porque si no me habría muerto
 de aburrido"  (Papelucho)



pgsql-hackers by date:

Previous
From: Evgeny Kuzin
Date:
Subject: [PATCH] libpq: try all addresses for a host before moving to next on target_session_attrs mismatch
Next
From: Tom Lane
Date:
Subject: Re: [PATCH] libpq: try all addresses for a host before moving to next on target_session_attrs mismatch