Re: [PATCH] Add pg_get_database_ddl() function to reconstruct CREATE DATABASE statement
Akshay Joshi <akshay.joshi@enterprisedb.com>
From: Akshay Joshi <akshay.joshi@enterprisedb.com>
To: Álvaro Herrera <alvherre@kurilemu.de>
Cc: Chao Li <li.evan.chao@gmail.com>, Japin Li <japinli@hotmail.com>, Quan Zongliang <quanzongliang@yeah.net>,
pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2025-11-20T09:18:45Z
Lists: pgsql-hackers
Attachments
- v5-0001-Add-pg_get_database_ddl-function-to-reconstruct-CREATE.patch (application/octet-stream)
Hi Álvaro, On Wed, Nov 19, 2025 at 4:17 PM Álvaro Herrera <alvherre@kurilemu.de> wrote: > Hello, > > One thing I realized a few days ago is that since commit bd09f024a1bb we > have type regdatabase, so instead of having two functions (one taking > name and one taking Oid), we should have just one, taking regdatabase, > just like the functions for producing DDL for other object types that > have corresponding reg* type. > Implemented in the suggested solution. Attached is the v5 patch for review. > > Regards, > > -- > Álvaro Herrera PostgreSQL Developer — > https://www.EnterpriseDB.com/ >