Quick revision
The short answer
At 3 TB, all three can work, so the decision rests on concurrency, cost model, skills and sharing needs rather than raw size. PostgreSQL with a columnar extension keeps one familiar technology but its scale and features depend on the extension's maturity; a cloud warehouse separates storage and compute, scales out for many users, charges per query or compute time and has strong governance; DuckDB is excellent for fast single-node analysis over Parquet files but is not a shared, multi-user serving system. Keeping raw data in open formats such as Parquet and Iceberg keeps the choice reversible.
What to remember
In this answer, we compared three ways to run analytics on 3 TB of data. PostgreSQL with a columnar extension keeps one technology but depends on the extension's maturity and scales mainly up; a cloud warehouse separates storage and compute, scales for many users, charges per query or compute time and brings strong governance; DuckDB is excellent for single-node analysis over Parquet but not for shared multi-user serving. At this size the decision rests on concurrency, cost model, skills and sharing needs, and open formats such as Parquet and Iceberg keep it reversible.
Your turn
Answer it aloud as you would in the interview, or type your answer below. Then show one part at a time and compare.
At 3 TB, all three can work, so the decision rests on concurrency, cost model, skills and sharing needs rather than raw size. PostgreSQL with a columnar extension keeps one familiar technology but its scale and features depend on the extension's maturity; a cloud warehouse separates storage and compute, scales out for many users, charges per query or compute time and has strong governance; DuckDB is excellent for fast single-node analysis over Parquet files but is not a shared, multi-user serving system. Keeping raw data in open formats such as Parquet and Iceberg keeps the choice reversible.
Why this question is asked
Many companies reach a few terabytes of data and find that their PostgreSQL reports have become slow. The market offers very different answers: stay on PostgreSQL with a columnar extension, move to BigQuery, Snowflake or Redshift, or use an embedded engine such as DuckDB that runs inside a process. Interviewers ask this scenario to see whether we can compare options on what really matters for a specific company, instead of naming a favourite. In this answer, we will set up the scenario, look at each option's strengths and limits, compare them side by side, and then walk through a decision with numbers and a way to avoid lock-in.
1Setting Up the Scenario
Let us make the company concrete. It has 3 TB of data, mostly orders, events and payments, growing about 1 TB a year. Ten analysts and around 200 business users view dashboards; at peak, maybe 30 queries run at once. Data arrives from PostgreSQL services through CDC and from a few SaaS tools. The engineering team knows PostgreSQL well and has no dedicated data platform engineers yet.
Three terabytes is not large by warehouse standards. A single modern server with 64 cores and 512 GB of memory can scan compressed columnar data of this size quickly. So the question is less whether an option can handle the data and more how it behaves with our users, our budget and our team.
2Option 1: PostgreSQL With a Columnar Extension
Several extensions and forks add column-oriented storage and vectorised execution to PostgreSQL, so analytical tables can live next to familiar tooling. The appeal is real: one technology, the same SQL, backups, monitoring and access control the team already runs, and easy joins between fresh operational copies and history.
The limits depend heavily on which extension we pick, so check its maturity carefully. Some support only append-only tables or have restrictions on updates and deletes; some are tied to a vendor's distribution or a managed service; and scaling usually means a bigger single server, or a distributed fork with its own operational complexity. At 3 TB with 30 concurrent queries, a well-sized server can work, but heavy analytical queries also compete with everything else running on that instance, so it should be a separate analytics cluster, not the production primary.
3Option 2: A Cloud Warehouse
BigQuery, Snowflake and Redshift are built for exactly this workload. They separate storage, kept cheaply in the provider's object storage, from compute, which scales independently. Snowflake lets us run separate virtual warehouses for ingestion, analysts and dashboards so they do not slow each other down; BigQuery allocates compute per query; Redshift offers provisioned clusters and a serverless mode. They also bring strong governance features: fine-grained access control, column masking, auditing and secure data sharing with partners.
The cost model is the main thing to understand. BigQuery's on-demand pricing charges by bytes scanned, so a careless SELECT * over a large table costs money every time it runs; Snowflake charges per second of warehouse compute; Redshift by cluster hours or serverless capacity. At 3 TB, a modest setup might cost a few thousand dollars a month, but badly designed dashboards that refresh every minute can multiply that. The skills needed are SQL plus cost awareness, which most teams can learn.
4Option 3: An Embedded Engine Like DuckDB
DuckDB is a column-oriented, vectorised SQL engine that runs inside a process, like SQLite for analytics. It reads Parquet and CSV files directly, from local disk or object storage, and on a single machine it is remarkably fast. An analyst can query a terabyte of Parquet files on a large laptop or a cloud VM without any server to run.
Its limits come from being embedded. It is not designed to be a shared server for hundreds of concurrent dashboard users, it has no central user management or row-level security of its own, and a database file is normally written by one process at a time. So DuckDB shines for data engineering steps, local exploration, notebooks and small internal tools, and as a fast engine over files in a lake, but not as the single shared warehouse for the whole company. Hosted services built around it change some of this, which is worth evaluating separately.
5Comparing the Options Side by Side
With the three options described, the comparison becomes a matter of matching each to our needs.
| Concern | PostgreSQL + columnar | Cloud warehouse | DuckDB |
|---|---|---|---|
| Concurrency | moderate, one server | high, scales out | single process, low |
| Cost model | server cost, fixed | per query or compute time | free engine, your hardware |
| Operations | the team runs it | managed by the provider | almost none |
| Skills | existing PostgreSQL skills | SQL plus cost control | SQL, files and notebooks |
| Governance and sharing | PostgreSQL roles | strong: masking, audit, sharing | minimal on its own |
| Best fit | one stack, modest load | many users, growth | local and pipeline analysis |
Reading the table for our company: 200 dashboard users and 30 concurrent queries point toward a shared serving system, which rules out DuckDB as the main platform. A team without data platform engineers favours something managed. The PostgreSQL option is attractive for skills, but its scaling path is less clear as data grows by 1 TB a year. So for this company, a cloud warehouse is the likely choice, with DuckDB used by data engineers and analysts for local work over the same Parquet files.
6Keeping the Choice Reversible With Open Formats
Whichever engine we pick, the riskiest part of lock-in is not the SQL dialect but where the data lives. If all raw and modelled data exists only in a vendor's internal format, leaving means exporting everything. A safer design lands raw data in object storage in open formats: Parquet files for the data itself, and a table format such as Apache Iceberg on top, which adds schemas, snapshots and safe concurrent updates. Major warehouses can read and often write Iceberg tables, and DuckDB and Spark can read them too.
Then the engine becomes a replaceable layer: the warehouse for dashboards, DuckDB for local work, perhaps Spark for heavy batch jobs, all over the same tables. Performance on external open tables may be a bit lower than on a warehouse's native storage, so many teams keep raw and history in Iceberg and copy hot, frequently queried marts into native tables.
- BI tools and notebooksdashboards, analysts
- Query enginescloud warehouse, DuckDB, Spark
- Table formatApache Iceberg: schemas, snapshots
- Open filesParquet in object storage
4 layers, from the top down. Step through them one at a time.
7Follow-up questions
Would you ever choose PostgreSQL with a columnar extension here?
Yes, if concurrency is low, growth is slow and the team strongly prefers one technology, or if strict rules require data to stay on infrastructure we run. I would still run it on a separate analytics instance and test the chosen extension's limits on updates, joins and backups before committing.
How do you avoid surprise bills in a cloud warehouse?
Partition and cluster large tables by date, avoid SELECT * in dashboards, set per-user or per-project query limits, use auto-suspend on compute, and give each team a budget with cost reports. Most surprise bills come from a few scheduled queries or dashboards that scan whole tables repeatedly.
Can DuckDB replace a warehouse for a small company?
For a small team with a handful of analysts and data in Parquet, it can go a long way, especially combined with a hosted service or a simple scheduled pipeline. Once many people need shared, governed access at the same time, a server-based warehouse becomes simpler.
8Conclusion
In this answer, we compared three ways to run analytics on 3 TB of data. PostgreSQL with a columnar extension keeps one technology but depends on the extension's maturity and scales mainly up; a cloud warehouse separates storage and compute, scales for many users, charges per query or compute time and brings strong governance; DuckDB is excellent for single-node analysis over Parquet but not for shared multi-user serving. At this size the decision rests on concurrency, cost model, skills and sharing needs, and open formats such as Parquet and Iceberg keep it reversible.
Open with
At 3 TB, honestly all three can work, so I'd decide on concurrency, cost model, skills and sharing rather than size. PostgreSQL with a columnar extension keeps one technology and the team's existing skills, but the capabilities and limits depend a lot on the extension, things like update support and how it scales, which is mostly scaling up one server.
Then, if they want more
I'd run it as a separate analytics instance, never on the production primary. A cloud warehouse like Snowflake, BigQuery or Redshift separates storage and compute, scales out for many concurrent users, can isolate workloads, and has strong governance like masking, auditing and data sharing.
The thing to manage is the cost model: bytes scanned or compute time, so partitioning, no SELECT star and budgets matter. DuckDB is fantastic on a single node over Parquet files, for notebooks, pipelines and local analysis, but it's not a shared multi-user serving system.
For a company with 200 dashboard users, 30 concurrent queries at peak, data growing a terabyte a year and no data platform team, I'd lean toward a cloud warehouse, with DuckDB for local work. And to avoid lock-in, I'd keep raw data in open formats, Parquet with Iceberg, so the engine stays replaceable.
About this answer
- Last updated
- 12 November 2026
- Checked
- Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the documentation below. What the checks cover
- Where the question comes from
- Written by Scrivio for practice. It is not taken from an interview.
- Official documentation
- PostgreSQL documentation, MySQL reference manual
Report an issue with this answer
Copy the line below and send it to the author with what you found. It carries the address of this page.
Issue with "Compare running analytics on PostgreSQL with a columnar extension, on a cloud warehouse...": https://scrivio-interview-library.netlify.app/databases/analytics-and-cdc/78d3a7c3b0/