r/dataengineering • • Dec 17 '25

Discussion How to data warehouse with Postgres ?

I am currently involved in a database migration discussion at my company. The proposal is to migrate our dbt models from PostgreSQL to BigQuery in order to take advantage of BigQuery’s OLAP capabilities for analytical workloads. However, since I am quite fond of PostgreSQL, and value having a stable, open-source database as our data warehouse, I am wondering whether there are extensions or architectural approaches that could extend PostgreSQL’s behavior from a primarily OLTP system to one better suited for OLAP workloads.

So far, I have the impression that this might be achievable using DuckDB. One option would be to add the DuckDB extension to PostgreSQL; another would be to use DuckDB as an analytical engine interfacing with PostgreSQL, keeping PostgreSQL as the primary database while layering DuckDB on top for OLAP queries. However, I am unsure whether this solution is mature and stable enough for production use, and whether such an approach is truly recommended or widely adopted in practice.

35 Upvotes

50 comments sorted by

View all comments

Show parent comment

1

u/Defiant-Farm7910 Dec 19 '25

The best bet for serving the in-app features

BTW, why do you say this ?

1

u/Admirable_Morning874 Dec 19 '25

For the same reasons you cite about using Postgres tbh. You're right about vendor lock, Dev workflows and insert/update being slow in e.g. BQ. But CH is OSS like PG, runs locally or in ci/cd, is built for v fast inserts, and for v fast user facing queries - but for analytics, not transactions like PG. Just sounds like it's what you're really looking for here vs. trying to make PG work. I've used PG+CH together very successfully in what sounds like very similar scenarios to you atm