tsf_fdw
tsf_fdw · Golden Helix C foreign data wrapper for reading one or more TSF genomic data files as PostgreSQL foreign tables.
Overview
Usage
Sources:
tsf_fdw version 1.0 is a Golden Helix foreign data wrapper for reading fields from local TSF genomic data files as PostgreSQL foreign tables. It implements scans only and is not a writer for TSF files.
Core Workflow
The PostgreSQL server process must be able to read the file path. Foreign-table options include filename, optional base path, sourceid, and fieldtype; per-column options can override the file/source and select fieldidx or mapping sources. Match column names and types to the TSF source exactly.
For discovery, tsf_generate_schemas(prefix, tsf_path, source_id) returns generated DDL for one source or all sources. Review its output before executing it, especially the generated server name and absolute paths.
Query and Operational Boundaries
The FDW skips unreferenced fields and implements local restriction processing against TSF iterators, but it does not provide write callbacks. File contents, source IDs, field kinds, and mappings must remain consistent with the foreign-table definition.
This project has no substantive upstream README and depends on the bundled TSF C library. Validate file-format compatibility, permissions, concurrent access, array/mapping fields, query plans, and corrupt-file errors with representative Golden Helix data. Back up the source files independently; PostgreSQL backup does not include external TSF contents.