dump_fdw
dump_fdw · Foreign data wrapper for querying rows directly from PostgreSQL custom-format dump files
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 100085 | dump_fdw | dump_fdw | 1.0 | FDW | BSD-3-Clause | C |
Usage
Sources:
dump_fdw is a read-only foreign data wrapper for querying relations stored in PostgreSQL custom-format dump files. Its intended uses are ad hoc backup analytics and selecting individual rows for a controlled restore.
Setup and example
Install the extension, create its server object, and map a foreign table to one relation in a server-local dump file:
All three foreign-table options are required. The column definition must agree with the dumped relation. Only a superuser should be allowed to create or alter these mappings, because the file name can reference arbitrary files visible to the PostgreSQL server process.
Limits and safety
The wrapper implements scans, not insert, update, or delete callbacks. It parses old custom-dump internals and materializes rows through a CSV-style path; compatibility therefore depends on the dump format, compression, data types, and PostgreSQL build.
Upstream calls version 1.0 a prototype, says it was tested only on PostgreSQL 9.1 through 9.4, and explicitly warns against production use. The source has not been updated since 2015, although the repository is not archived. Use an isolated restoration host, a copy of the dump, a low-privilege database, and representative validation before relying on results.