orc_fdw
orc_fdw · Foreign data wrapper for reading ORC formatted files
Overview
Usage
Sources:
orc_fdw 1.0 is a read-only foreign data wrapper for querying local files in Apache ORC format. A foreign table maps PostgreSQL columns to the ORC file and requires a server-side filename option.
Core Workflow
The path is resolved on the database server, not on the client. PostgreSQL’s operating-system account must be able to open and stat the file.
Important Objects
orc_fdw_handler()supplies the PostgreSQL FDW callback table.orc_fdw_validator(text[], oid)validates object options and requiresfilenameon each foreign table.orc_fdwis the installed foreign data wrapper.filenameis the only implemented foreign-table option in the pinned source.
Operational Notes
The implementation registers scan and explain callbacks but no insert, update, or delete callbacks, so use it only for reads. Files are local to each server process; failover nodes need the same path and content if queries must behave identically. The upstream build instructions target protobuf/protobuf-c and ORC data associated with Hive 0.12, indicating an old and narrow format implementation. Validate column-type mapping, compression, predicate behavior, and files produced by the exact ORC writer before adoption; do not assume current ORC ecosystem compatibility from the format name alone.