neo4j_fdw
neo4j_fdw · C foreign data wrapper for Neo4j Cypher query results.
Overview
Usage
Sources:
neo4j_fdw is a C foreign data wrapper that exposes the rows returned by a Neo4j Cypher request as a PostgreSQL foreign table. It targets Neo4j’s historical HTTP Cypher endpoint and should not be confused with similarly named Python or Multicorn projects.
Core Workflow
Create a server with the endpoint URL, then define a foreign table whose query option is a JSON request. The Cypher RETURN list must match the PostgreSQL columns by position and compatible type.
Objects and Boundaries
neo4j_fdwis the foreign data wrapper; the server option isurland the foreign-table option isquery.exec_cypher(text, text)sends an endpoint URL and a JSON request directly and returns Neo4j’s JSON response.- The extension links against
libcurlandjson-c. Version1.0documentation does not define authentication, TLS verification, timeout, write support, or planner pushdown guarantees.
The examples use Neo4j’s obsolete START syntax and legacy /db/data/cypher endpoint, so modern Neo4j releases may be incompatible. Treat query text and URLs as administrator-controlled input, restrict outbound network access, and verify authentication, escaping, NULL/type conversion, local versus remote filtering, cancellation, and failure behavior against the exact Neo4j release before use.