ppg_fdw
ppg_fdw · ppg_fdw: distributed parallel query engine for sharded remote PostgreSQL servers
Overview
Usage
Sources:
ppg_fdw is a legacy prototype for parallel queries over horizontally sharded PostgreSQL servers. It combines a fork of postgres_fdw with a global planner hook and was demonstrated with TPC-H fact-table shards and replicated dimension tables in a shared-nothing layout.
Minimal FDW objects
The extension installs the ppg_fdw wrapper, handler, and validator. A single-server definition uses familiar foreign-data-wrapper objects:
Use a secret-management process for user-mapping credentials and require encrypted, authenticated network connections. The upstream multi-host example replaces the server’s catalog option array with custom host1 and host2 entries by directly updating pg_catalog; that unsupported mutation is deliberately omitted here.
Caveats
- The code and installation notes are from the PostgreSQL 9.3 era and copy PostgreSQL planner and FDW internals. There is no evidence of compatibility with current PostgreSQL releases.
- Upstream’s distributed configuration requires direct system-catalog updates that bypass DDL validation, dependency tracking, and supported administration interfaces. Do not use that method on a production cluster.
- The global planner hook handles only a subset of plan nodes and query shapes. Unsupported plans can error, return unexpected behavior, or lose any intended parallelism.
- Correct results depend on the application’s sharding key, data placement, duplicated dimension tables, and cross-shard transaction assumptions. The extension does not provide a complete distributed database control plane.
- Treat ppg_fdw as historical research code. For a real deployment, evaluate maintained FDWs or distributed PostgreSQL systems with documented failure handling, security, compatibility, and upgrade paths.