| From: | Álvaro Herrera <alvherre(at)kurilemu(dot)de> |
|---|---|
| To: | Vaibhav Dalvi <vaibhav(dot)dalvi(at)enterprisedb(dot)com> |
| Cc: | pgsql-hackers(at)postgresql(dot)org |
| Subject: | Re: [PATCH] Add pg_get_subscription_ddl() function |
| Date: | 2025-11-11 11:34:01 |
| Message-ID: | 202511110940.xr5jkvj7kic3@alvherre.pgsql |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On 2025-Nov-11, Vaibhav Dalvi wrote:
> Hi Alvaro,
>
> Thanks for the explanation.
>
> I tried to get rid of String usage in 0001 patch.
> Prepared 0002 patch for actual implementation of the
> function p_get_subscription_ddl().
OK, now I understand what you meant when you mentioned
CreateSubscriptionStmt: the problem is that the same code is being used
for the purposes of processing the subscription lists of both
Subscription and SubscriptionStmt. I think this whole code is a bit
ugly TBH -- not yours, but what was there before -- but now that I've
realized this, I think stripping those values out of the String wrapping
is the wrong direction to go in, because it leads to more contortions
rather than less.
--
Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/
"They proved that being American is not just for some people"
(George Takei)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Álvaro Herrera | 2025-11-11 11:41:25 | CURL_IGNORE_DEPRECATION |
| Previous Message | Matheus Alcantara | 2025-11-11 11:24:56 | Re: Include extension path on pg_available_extensions |