aerospike_fdw
Foreign Data Wrapper for Aerospike.
aerospike_fdw · Foreign Data Wrapper for Aerospike.
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 100375 | aerospike_fdw | aerospike_fdw | 1.0 | FDW | Unknown | C |
Usage
Sources:
aerospike_fdw is an experimental foreign data wrapper for reading records from an Aerospike namespace and set and inserting records through a PostgreSQL foreign table. The server connection is process-global: aerospike.as_server_ip and aerospike.as_server_port are postmaster-start settings, so the library must be preloaded and the server restarted.
Configuration and Foreign Table
The upstream build requires the Aerospike C client and its Lua support files. Its implementation also expects Lua files under the hard-coded /home/pg/lua tree.
After restarting PostgreSQL, create the wrapper and map an Aerospike set. The key option names the foreign-table column used as the Aerospike record key.
Caveats
- The reviewed FDW routine exposes scans and inserts, but not updates or deletes. Its validator accepts only the foreign-table options
namespace,set, andkeyand does not verify that all three are present. - The library connects to Aerospike during PostgreSQL startup and calls process termination on some connection failures. Test startup and failure handling away from production.
- Scan execution generates and uploads Aerospike Lua UDF files and uses hard-coded server-side paths. Those paths, file permissions, and UDF privileges are deployment requirements, not ordinary SQL configuration.
- The upstream source dates from 2016 and publishes no current PostgreSQL or Aerospike compatibility matrix. Treat version
1.0as legacy experimental code and validate it against the exact server and client versions before use.