gofdw
Postgres FDW in go experiments
gofdw · Postgres FDW in go experiments
Overview
Usage
Sources:
- Official upstream README
- Official extension control file (gofdw.control)
- Official extension SQL (gofdw.sql)
gofdw — A Postgres Foreign Data Wrapper implemented in go using cgo. Very experimental. Use it when PostgreSQL must access the corresponding external data source through a foreign-data interface. Upstream describes this capability as experimental.
Core Workflow
Install the extension in the intended database, run the smallest upstream example above when available, and verify the installed version and returned values before integrating it into application SQL.
Important Objects
gofdw_handler()is an extension function and returnsfdw_handler.gofdw_validator(text[], oid)is an extension function.gofdwis an extension-defined foreign data wrapper.
Requirements and Caveats
- The reviewed control file declares default version
0.1. - The control file marks the extension as relocatable.
- Upstream labels part or all of the project experimental.
- Confirm privileges, supported PostgreSQL versions, upgrade behavior, and failure cases against the pinned source before production use.