Maxim Mironjuk
-
January 16, 2025
When a reporting query needs to combine data from two separate databases, many teams reach for an ETL pipeline by default: export data from system A, import it into system B, then join. Foreign data wrappers offer a more direct route. They expose an external data source, whether another relational database, a CSV file, or a REST API, as a virtual table inside your own database. From the query optimizer's perspective, that table looks like any other, with the same filtering, joining and aggregation options, but with different performance characteristics you need to understand.