Skip to content

pg_xdbc_fdw

Foreign data wrapper for XDBC data transfer

pg_xdbc_fdw · Foreign data wrapper for XDBC data transfer

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
102049pg_xdbc_fdwpg_xdbc_fdw0.1FDWMITC++

PostgreSQL · 13

Usage

Sources:

pg_xdbc_fdw is a research connector between PostgreSQL and the XDBC client/server data-transfer stack. Upstream provides a PostgreSQL 13 container topology and experiment setup, rather than a general-purpose ODBC compatibility layer.

Core Workflow

Install the XDBC client dependencies and run the corresponding server before querying. The local JSON schema must match both the declared columns and remote data.

CREATE EXTENSION pg_xdbc_fdw;
CREATE SERVER xdbcserver FOREIGN DATA WRAPPER pg_xdbc_fdw;
CREATE FOREIGN TABLE transfer_data (id integer, value text)
  SERVER xdbcserver
  OPTIONS (schema_file_path '/srv/xdbc/schema.json', server_host 'xdbcserver', table 'transfer_data');
SELECT * FROM transfer_data;

Boundaries

The extension installs pg_xdbc_fdw_handler() and its foreign data wrapper. schema_file_path is read from the PostgreSQL host; server_host and table select the XDBC source. A matching schema file and reachable service are prerequisites, not created by this SQL. The upstream test setup also uses buffer settings; choose them according to the exact XDBC build. No general schema-import, write, security or cross-system transaction guarantees are established by the project documentation.

Table reader