| From: | Jeff Davis <pgsql(at)j-davis(dot)com> |
|---|---|
| To: | Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com> |
| Cc: | Shlok Kyal <shlok(dot)kyal(dot)oss(at)gmail(dot)com>, Ashutosh Bapat <ashutosh(dot)bapat(dot)oss(at)gmail(dot)com>, Bharath Rupireddy <bharath(dot)rupireddyforpostgres(at)gmail(dot)com>, Joe Conway <mail(at)joeconway(dot)com>, pgsql-hackers(at)postgresql(dot)org |
| Subject: | Re: [19] CREATE SUBSCRIPTION ... SERVER |
| Date: | 2026-02-26 19:12:01 |
| Message-ID: | 60ff024706fe1beab62a89ac07eb6a721856de2e.camel@j-davis.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Wed, 2026-02-04 at 13:53 +0900, Masahiko Sawada wrote:
> I've reviewed the latest patch set. I understand the motivation
> behind
> this proposal and find it useful.
Thank you, that's important feedback.
> The documentation for ALTER FOREIGN DATA WRAPPER needs to be updated.
Done.
> ---
> The security section[1] of logical replication chapter would also
> need
> to be updated.
Done.
> We might want to mention in the documentation of CREATE SERVER[2]
> that
> a foreign server's name can be used to connect publication in CREATE
> SUBSCRIPTION as we have a similar description for dblink_connect():
Done.
> ---
> dblink_connect() function can retrieve the connection string from a
> foreign server specified in the second argument, which is a very
> similar use case to CREATE SUBSCRIPTION. Should we make dblink use
> the
> new function ForeignServerConnectionString() to get the connection
> string (in get_connect_string())?
ForeignServerConnectionString() goes through the new FDW
connection_function, whereas dblink builds the string itself.
Technically, changing that could break things, but overall it seems to
make sense. I added this as a separate commit.
> ---
> It would be better to enhance psql's \dRs command to show the server
> name specified in the subscription.
Good idea, done.
Regards,
Jeff Davis
| Attachment | Content-Type | Size |
|---|---|---|
| v17-0001-CREATE-SUBSCRIPTION-.-SERVER.patch | text/x-patch | 126.0 KB |
| v17-0002-dblink-support-foreign-data-wrapper-CONNECTION-c.patch | text/x-patch | 9.3 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Mark Wong | 2026-02-26 19:43:30 | Re: updates for handling optional argument in system functions |
| Previous Message | Mahendra Singh Thalor | 2026-02-26 19:11:31 | Re: Non-text mode for pg_dumpall |