Re: [PATCH] Add pg_get_type_ddl() to retrieve the CREATE TYPE statement
Philip Alger <paalger0@gmail.com>
From: Philip Alger <paalger0@gmail.com>
To: Quan Zongliang <quanzongliang@yeah.net>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2025-10-31T22:29:19Z
Lists: pgsql-hackers
Attachments
- v2-0001-Add-pg_get_type_ddl-function.patch (application/octet-stream) patch v2-0001
Hi Quan, > Found a small bug. MULTIRANGE_TYPE_NAME does not output schema. > > When outputting, the function "quote_qualified_identifier" should be > used instead of "quote_identifier". > > Similarly, the function names in print_range_type_def and > print_base_type_def should also be processed in this way for their output. > I think I sorted it out. Attached is v2. Thanks for taking a look at it. -- Best, Phil Alger