Re: [19] CREATE SUBSCRIPTION ... SERVER
Jeff Davis <pgsql@j-davis.com>
From: Jeff Davis <pgsql@j-davis.com>
To: Masahiko Sawada <sawada.mshk@gmail.com>
Cc: Shlok Kyal <shlok.kyal.oss@gmail.com>, Ashutosh Bapat
<ashutosh.bapat.oss@gmail.com>, Bharath Rupireddy
<bharath.rupireddyforpostgres@gmail.com>, Joe Conway <mail@joeconway.com>,
pgsql-hackers@postgresql.org
Date: 2026-02-26T19:12:01Z
Lists: pgsql-hackers
Attachments
- v17-0001-CREATE-SUBSCRIPTION-.-SERVER.patch (text/x-patch) patch v17-0001
- v17-0002-dblink-support-foreign-data-wrapper-CONNECTION-c.patch (text/x-patch) patch v17-0002
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
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Document new catalog columns, missed in commit 8185bb5347.
- 90630ec42939 19 (unreleased) landed
-
Refactor to remove ForeignServerName().
- 11f8018ee678 19 (unreleased) landed
-
GetSubscription(): use per-object memory context.
- f16f5d608ca6 19 (unreleased) landed
-
Fix dependency on FDW's connection function.
- 4a0b46b6e1e4 19 (unreleased) landed
-
ALTER SUBSCRIPTION ... SERVER test.
- 1c5bf1185af0 19 (unreleased) landed
-
Fix pg_dump for CREATE FOREIGN DATA WRAPPER ... CONNECTION.
- b71bf3b84570 19 (unreleased) landed
-
Clean up postgres_fdw/t/010_subscription.pl.
- f4af7849b3db 19 (unreleased) landed
-
CREATE SUBSCRIPTION ... SERVER.
- 8185bb534763 19 (unreleased) landed
-
Allow upgrades to preserve the full subscription's state.
- 9a17be1e244a 17.0 cited