Skip to content

wdb_fdw

WhiteDB Foreign Data Wrapper

wdb_fdw · WhiteDB Foreign Data Wrapper

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
100382wdb_fdwwdb_fdw0.0.1FDWPostgreSQLC

Usage

Sources:

wdb_fdw version 0.0.1 is a historical foreign data wrapper for an attached WhiteDB shared-memory database. A foreign server accepts address and size options, and foreign tables map their columns to WhiteDB record fields. The handler wires scan, insert, and delete callbacks; its update callback is commented out despite the README claiming UPDATE support.

Historical example

CREATE EXTENSION wdb_fdw;
CREATE SERVER white_local FOREIGN DATA WRAPPER wdb_fdw
  OPTIONS (address '1000', size '1000000');
CREATE USER MAPPING FOR CURRENT_USER SERVER white_local;
CREATE FOREIGN TABLE white_items (key text, value text) SERVER white_local;
SELECT * FROM white_items;

The write path is unsafe even on the matching legacy stack. Write-lock acquisition and release are commented out, and the delete callback ignores the row selected by PostgreSQL: it fetches and deletes the first WhiteDB record instead. Treat the wrapper as read-only when inspecting historical data.

The repository is archived and the code targets 2013-era PostgreSQL FDW APIs and WhiteDB. It supports only a narrow set of numeric and text conversions, has incomplete error and transaction semantics, and cannot be assumed crash-safe or transactionally equivalent to PostgreSQL storage. Do not deploy it on a current production server. If historical data must be recovered, pin the matching legacy toolchain and work on disposable copies in an isolated environment.

Table reader