PostgreSQL We built federated SQL over MySQL, Postgres, and S3 - one query, multiple sources

Been experimenting with running SQL across multiple sources without moving data around first.
Under the hood it's DuckDB, used as a read layer to query:
- MySQL / PostgreSQL
- local files (CSV, JSON, Parquet)
- S3-compatible storage
The idea is simple: instead of ETL or connectors, just attach sources and query them together.
Example:
```
SELECT
o.order_id,
o.amount,
p.category
FROM postgres.public.orders o
JOIN read_parquet('s3://bucket/products.parquet') p
ON o.product_id = p.id;
```
Works well for:
- validation before/after migrations
- comparing datasets across systems
- quick analysis without setting up pipelines
Not a fit for:
- continuous CDC (this is a read layer)
- heavy transactional workloads
Full disclosure: this is part of DBConvert Streams, a self-hosted tool. The IDE (including federated queries) is free, streaming/CDC is paid.
More details here:
https://streams.dbconvert.com/cross-database-sql/
Happy to answer questions about DuckDB integration, type handling, or edge cases.
5
u/TemporaryDisastrous Apr 15 '26
Just be careful designing your queries lest network latency absolutely nukes your performance .
2
u/Imaginary__Bar Apr 16 '26
🤔
1
u/[deleted] Apr 16 '26
[removed] — view removed comment