A foreign data wrapper (FDW) is a PostgreSQL extension interface for connecting to external data sources and querying remote data transparently with standard SQL, as though it were stored in regular PostgreSQL tables. section 7.3
FDWs can make PostgreSQL a unified data layer across several source types:
- Query files through file_fdw. section 7.3
- Connect to PostgreSQL, MySQL, Oracle, or SQLite through postgres_fdw, mysql_fdw, oracle_fdw, or sqlite_fdw. section 7.3
- Retrieve data from Redis, S3, or Kafka through redis_fdw, parquet_s3_fdw, or kafka_fdw. section 7.3
One SQL-facing data layer
An application can use PostgreSQL as a unified access point: an FDW exposes a remote database, file system, or non-SQL source, and queries use standard SQL rather than source-specific access patterns. section 7.3
