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-03-05T19:00:43Z
Lists: pgsql-hackers
On Tue, 2026-03-03 at 10:19 -0800, Masahiko Sawada wrote: > It made me think that it might be > interesting to implement a FDW that supports only the libpq > connection > (i.e., NO HANDLER, NO VALIDATOR, and CONNECTION) as it provides the > connection management capability useful for subscriptions while users > can avoid any security risks in postgres_fdw that users might be > concerned about. We discussed some similar ideas earlier in the thread. My initial proposal used special "FOR CONNECTION ONLY" syntax and had special cases for the FDW. Tom didn't like the special syntax and catalog work[1], and suggested a dummy FDW. Ashutosh expressed concern about the scope of a dummy FDW[2], and suggested that we just rely on postgres_fdw, which is the current patch. I agree and think it's the right direction. A new special-purpose FDW might be useful, but I don't understand the exact use case yet, so I think it's better to leave it to the user to implement a new FDW that does what they want. (Perhaps special safety rules, etc.) Regards, Jeff Davis [1] https://www.postgresql.org/message-id/172273.1693403385%40sss.pgh.pa.us [2] https://www.postgresql.org/message-id/CAExHW5uCzS-VeSYQHTHxFSdQik-f_O892xmzrzm2fuO+ro+otA@mail.gmail.com
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