Re: [PATCH] Add pg_get_type_ddl() to retrieve the CREATE TYPE statement

From: Philip Alger <paalger0(at)gmail(dot)com>
To: Quan Zongliang <quanzongliang(at)yeah(dot)net>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [PATCH] Add pg_get_type_ddl() to retrieve the CREATE TYPE statement
Date: 2025-10-31 22:29:19
Message-ID: CAPXBC8+uwizxR5EbqAYga88U2NoYUOee9xVSKdSA6phx_q=WDw@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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

Attachment Content-Type Size
v2-0001-Add-pg_get_type_ddl-function.patch application/octet-stream 39.5 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Jacob Champion 2025-10-31 22:52:10 Re: libpq: Bump protocol version to version 3.2 at least until the first/second beta
Previous Message Jelte Fennema-Nio 2025-10-31 21:56:19 Re: libpq: Bump protocol version to version 3.2 at least until the first/second beta