| From: | Vaibhav Dalvi <vaibhav(dot)dalvi(at)enterprisedb(dot)com> |
|---|---|
| To: | alvherre(at)kurilemu(dot)de |
| Cc: | pgsql-hackers(at)postgresql(dot)org |
| Subject: | Re: [PATCH] Add pg_get_subscription_ddl() function |
| Date: | 2025-11-11 15:51:25 |
| Message-ID: | CA+vB=AFsqT4DkdJzDUfNSx6xLMiijWbbOrb=7uJoynHfAURnjw@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Hi Alvaro,
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.
I also agree with you. I couldn't explain it well so I thought of doing
the changes.
Please find the attached patch which introduces a new static function to
convert
text array to string list instead of making textarray_to_stringlist()
non-static.
Request to please review the attached v5 patch.
Regards,
Vaibhav
On Tue, Nov 11, 2025 at 5:04 PM Álvaro Herrera <alvherre(at)kurilemu(dot)de> wrote:
> 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)
>
| Attachment | Content-Type | Size |
|---|---|---|
| v5-Add-pg_get_subscription_ddl-function.patch | application/octet-stream | 27.3 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Fabrice Chapuis | 2025-11-11 15:56:56 | Re: Issue with logical replication slot during switchover |
| Previous Message | Álvaro Herrera | 2025-11-11 15:34:10 | Re: Document NULL |