postgresql/src
Jeff Davis 8185bb5347 CREATE SUBSCRIPTION ... SERVER.
Allow CREATE SUBSCRIPTION to accept a foreign server using the SERVER
clause instead of a raw connection string using the CONNECTION clause.

  * Enables a user with sufficient privileges to create a subscription
    using a foreign server by name without specifying the connection
    details.

  * Integrates with user mappings (and other FDW infrastructure) using
    the subscription owner.

  * Provides a layer of indirection to manage multiple subscriptions
    to the same remote server more easily.

Also add CREATE FOREIGN DATA WRAPPER ... CONNECTION clause to specify
a connection_function. To be eligible for a subscription, the foreign
server's foreign data wrapper must specify a connection_function.

Add connection_function support to postgres_fdw, and bump postgres_fdw
version to 1.3.

Bump catversion.

Reviewed-by: Ashutosh Bapat <ashutosh.bapat.oss@gmail.com>
Reviewed-by: Shlok Kyal <shlok.kyal.oss@gmail.com>
Reviewed-by: Masahiko Sawada <sawada.mshk@gmail.com>
Reviewed-by: Amit Kapila <amit.kapila16@gmail.com>
Discussion: https://postgr.es/m/61831790a0a937038f78ce09f8dd4cef7de7456a.camel@j-davis.com
2026-03-06 08:27:56 -08:00
..
backend CREATE SUBSCRIPTION ... SERVER. 2026-03-06 08:27:56 -08:00
bin CREATE SUBSCRIPTION ... SERVER. 2026-03-06 08:27:56 -08:00
common Don't include wait_event.h in pgstat.h 2026-03-06 16:24:58 +01:00
fe_utils Exit after fatal errors in client-side compression code. 2026-03-05 14:43:21 -05:00
include CREATE SUBSCRIPTION ... SERVER. 2026-03-06 08:27:56 -08:00
interfaces libpq: Add PQgetThreadLock() to mirror PQregisterThreadLock() 2026-03-05 10:04:48 -08:00
makefiles Restore AIX support. 2026-02-23 13:34:22 -05:00
pl EUC_CN, EUC_JP, EUC_KR, EUC_TW: Skip U+00A0 tests instead of failing. 2026-02-25 18:13:22 -08:00
port Check for memset_explicit() and explicit_memset() 2026-03-02 07:51:19 +01:00
template Restore AIX support. 2026-02-23 13:34:22 -05:00
test CREATE SUBSCRIPTION ... SERVER. 2026-03-06 08:27:56 -08:00
timezone Use fallthrough attribute instead of comment 2026-02-19 08:51:12 +01:00
tools Centralize detection of x86 CPU features 2026-02-27 20:30:41 +07:00
tutorial Force standard_conforming_strings to always be ON. 2026-01-21 15:08:38 -05:00
.gitignore
DEVELOPERS
Makefile Remove distprep 2023-11-06 15:18:04 +01:00
Makefile.global.in tests: Add a test C++ extension module 2026-01-20 16:42:30 +01:00
Makefile.shlib Restore AIX support. 2026-02-23 13:34:22 -05:00
meson.build Update copyright for 2026 2026-01-01 13:24:10 -05:00
nls-global.mk Fix update-po for the PGXS case 2025-10-16 20:21:05 +02:00