monetdb_fdw
monetdb_fdw · MonetDB foreign data wrapper
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 100114 | monetdb_fdw | monetdb_fdw | 0.0 | FDW | PostgreSQL | C |
Usage
Sources:
monetdb_fdw is a version 0.0 prototype for reading MonetDB data through the MonetDB MAPI client library. It implements foreign scans only: there is no DML, join/aggregate pushdown, remote costing, or production-grade option and credential model.
Core Workflow
Connection credentials and the remote relation or query are configured directly on each foreign table:
Use either table or query. With table, the wrapper constructs a simple SELECT * FROM ...; with query, it executes the supplied text verbatim.
Options and Build Boundary
Foreign-table options are host, port, user, passwd, dbname, table, and query. The project must be compiled against MonetDB’s MAPI headers and libmapi. There is no user-mapping credential layer, and result values arrive as strings which PostgreSQL converts to the locally declared column types.
Safety and Limitations
The validator restricts changes to the foreign-table options to a superuser, but credentials remain in foreign-table catalog metadata visible to sufficiently privileged roles. Restrict catalog and DDL access and do not place production secrets in this prototype. The table-name path uses minimal string construction and the query path is arbitrary remote SQL; never pass untrusted identifiers or text. Test the exact PostgreSQL ABI and MonetDB MAPI version, type/NULL conversion, long identifiers and queries, encoding, cancellation, partial reads, and connection loss in an isolated environment. Use a mature alternative for production workloads.