An Azure managed PostgreSQL database service for app development and deployment.
postgres_fdw is a PostgreSQL extension that allows one database to query tables in another database by defining them as foreign tables. Even when both databases are on the same Flexible Server, PostgreSQL treats them as isolated units, so the interaction happens through a separate connection and behaves like remote access, rather than a native cross-database join.
This extension is supported on Azure Flexible Server and can be enabled using CREATE EXTENSION postgres_fdw; with appropriate permissions. From a platform perspective, Microsoft supports the availability of the extension and basic connectivity. However, performance characteristics and query behavior depend on PostgreSQL execution and how the queries are designed.
In a “one server / many databases” setup, cross-database queries will still involve connection overhead and data movement during execution. While PostgreSQL can push down certain operations (such as filters and some joins), the effectiveness depends on the query structure, so performance may vary.
In practice, postgres_fdw works best for read-heavy scenarios such as reporting, aggregations, or accessing smaller reference datasets across databases. It can simplify occasional cross-database access without requiring data duplication.
At the same time, there are trade-offs to consider. Since this is not a true local operation, large joins or frequent queries across databases can introduce noticeable overhead. There is also additional operational complexity around managing foreign servers, user mappings, and permissions, and schema changes in one database can impact dependent queries in another.
For more demanding or large-scale workloads, it is generally recommended to consider alternatives such as consolidating into a single database with schemas, or using data movement approaches for more predictable performance.
For more details, please refer to:
https://learn.microsoft.com/azure/postgresql/flexible-server/concepts-extensions https://www.postgresql.org/docs/current/postgres-fdw.html
Please let us know if you have any questions and concerns.