valkey_fdw
valkey_fdw · Foreign data wrapper for querying a Valkey server
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 101196 | valkey_fdw | valkey_fdw | 1.0 | FDW | PostgreSQL | C |
PostgreSQL · 17, 18
Usage
Sources:
valkey_fdw is a foreign data wrapper for reading and modifying data in a Valkey key/value server. Version 1.0 requires PostgreSQL 17 or later and the libvalkey C client library. No preload setting is required.
Use a user mapping with the password option when the server requires authentication. Foreign tables can also represent Valkey hashes, lists, sets, and sorted sets with the documented tabletype, tablekeyprefix, tablekeyset, and singleton_key options.
Valkey does not provide PostgreSQL-style MVCC or SQL cursors, so a scan is not an atomic snapshot: keys can disappear while tuples are being built, and cursor scans can return an element more than once. Only one equality condition on the key column can be pushed down. Upstream also requires a source branch matching the PostgreSQL major version because FDW APIs change.