PostgreSQL Enterprise (50 Qs)•Part 3: Advanced Internals, Scale & Production Patterns (Senior / Lead)
How do Foreign Data Wrappers (FDW) work in PostgreSQL?
senior LevelDatabases & SQLPostgreSQL
In Simple Words:
FDW (postgres_fdw) implements the SQL/MED (Management of External Data) standard:
- Allows querying remote external databases (remote PostgreSQL, MySQL, Oracle, MongoDB, S3 files) directly from your local PostgreSQL instance as if they were local tables!
- Supports predicate pushdown: filters and joins are evaluated on the remote server before transferring data over the network.