PostgreSQL, DuckDB, and the long history behind databases as platforms

June 9, 2026

PostgreSQL, DuckDB, and the long history behind databases as platforms

Database debates often sound familiar. Who has higher QPS, a smarter optimizer, better columnar compression, or faster vector search? These questions matter. But over the longer course of database history, where a system draws its boundaries often matters more than any individual benchmark.

My view is that PostgreSQL's real advantage today is how closely it resembles an application platform for the database world. It doesn't have to beat a specialized database in every domain. It exposes many low-level capabilities as stable, composable, reusable interfaces. Outside developers can build on a mature database's transactions, permissions, backups, replication, optimizer, SQL protocol, and operations ecosystem.

The current interest in DuckDB plus PostgreSQL belongs in this context. Calling it “an OLAP plugin for PG” misses the longer history. It's a new combination after decades of debate over where relational databases should draw the boundaries between transactions, analytics, and extensions.

The old fork in the road between Oracle and Postgres

PostgreSQL and Oracle represent two long-standing directions in relational databases. Oracle embodies the integrated commercial path: a strong vendor packages SQL, transactions, optimization, storage, backup, high availability, and enterprise support into a complete product. It was expensive, heavyweight, and closed, but for a long time it also set the standard for what an enterprise database could do.

Postgres had a more academic and restless lineage. Mike Stonebraker led UC Berkeley's POSTGRES project from the mid-1980s to the mid-1990s. Hellerstein's retrospective describes a systems research project interested in more than making relational databases fast. It explored deeper questions around types, rules, object-relational models, and extensibility.1

That's the root of the love-hate relationship between PG and Oracle. They share the relational traditions of SQL, transactions, and optimizers, but have different values. Oracle is more like a commercial fortress. PG is more like a city that outside craftspeople can keep extending. Many teams see PostgreSQL as an open-source Oracle alternative for more than its price. It takes enterprise database concerns seriously while leaving the right to extend the system outside the vendor's walls.

PostgreSQL's advantage lies in its interfaces

PostgreSQL's extension mechanism is central here. The official documentation on extending SQL covers user-defined functions, types, procedures, aggregates, operators, index operator classes, and packaging related objects as an extension. CREATE EXTENSION does more than register a plugin name: it can install SQL objects such as functions, data types, operators, and index support methods. Interfaces such as foreign data wrappers also bring external sources into the executor and planner.234

That helps explain the emergence of projects such as pgvector, PostGIS, TimescaleDB, Citus, ParadeDB, FerretDB, and PostgresML. Instead of writing a database from scratch, each adds a specialized capability to existing PostgreSQL infrastructure. For developers that's an order-of-magnitude difference. You don't have to reinvent transactions, permissions, backup and recovery, the SQL protocol, or the client ecosystem. You can concentrate on the part that differentiates your work.

This goes further than “plugins” in many applications. An ordinary plugin often adds a function, a UI, or a connector. PostgreSQL extensions can participate in the database's object model, type system, indexing, and execution paths. That's why PostGIS doesn't feel like an external GIS service and pgvector doesn't feel like a vector database off to the side: they become part of the database.

Writing PG extensions still comes at a cost. C extensions, version compatibility, ABI concerns, permissions, shared_preload_libraries, and managed database allowlists are all real issues. Precisely because these problems exist, future competition may be less about writing another kernel and more about who can turn extensions, versioning, package management, observability, and hosting into a dependable distribution.

MySQL is pluggable too, at a different boundary

MySQL made its own important contribution to extensibility: pluggable storage engines. Its documentation describes an architecture in which a DBA can choose a specialized storage engine for an application while the application remains insulated from implementation details. The documentation explicitly connects those choices to requirements such as warehousing, transaction processing, and high availability.5

This design succeeded. Behind names such as InnoDB, MyISAM, MEMORY, NDB, ARCHIVE, and FEDERATED is MySQL's historical separation of the SQL server layer from the storage engine layer. Physical table storage, indexes, locks, and transaction capabilities can vary with the engine while the application's SQL interface stays as stable as possible.

PG puts the emphasis elsewhere. MySQL's classic pluggable boundary concerns how tables are stored and rows retrieved. PostgreSQL's boundary reaches into how a database understands a new object, operator, index method, or external data source. One resembles a replaceable chassis. The other lets people extend a city's roads, traffic rules, and districts.

MySQL has other plugin mechanisms, and PG's design isn't better everywhere. But from the perspective of a platform, their centers of gravity differ. MySQL made it possible for storage engines to compete. PostgreSQL made it possible for third parties to continue inventing database capabilities.

The Volcano model, vectorization, and DuckDB's role

Execution engines have their own long-running thread: the Volcano iterator model. Graefe's Volcano paper organizes query plans as operator trees, with operators pulling data through interfaces like open, next, and close. This abstraction was influential because it let scans, filters, joins, and aggregates fit together like a pipeline.6

The traditional iterator model has costs too. Passing data row by row between operators can make function calls, branch decisions, and CPU cache utilization bottlenecks in analytical queries. Modern OLAP engines tend toward column-oriented data, batching, and vectorized execution, changing the processing unit from one row to a batch of values.

That's DuckDB's role. On the analytical side it offers an embedded, column-friendly, vectorized execution engine without replacing PostgreSQL's transaction kernel. DuckDB has its own PostgreSQL extension that can read and write a running PostgreSQL database directly. In the reverse direction, pg_duckdb embeds DuckDB's analytical capabilities inside PostgreSQL, letting analytical queries in an ordinary PG environment use DuckDB's execution model.78

Seen this way, DuckDB plus PG joins two architectures. PG handles the responsibilities of a system database; DuckDB handles those of an analytics engine. Users needn't migrate their operational database to a new system or teach the application another database protocol. Low adoption friction is exactly what open-source HTAP needs.

HTAP is a wider industry pursuit

Bringing transactions and analytics closer together is hardly wishful thinking unique to the PostgreSQL community. A 2024 HTAP survey describes combining transactional and analytical processing in a unified system, often using both row and column storage. It groups prevalent architectures into primary row stores with in-memory column stores, distributed row stores with column replicas, primary row stores with distributed in-memory column stores, and primary column stores with delta row stores.9

Commercial databases have long pursued similar goals. Oracle Database In-Memory uses row and in-memory column formats for mixed workloads. MySQL HeatWave promotes transactions, analytics, machine learning, and lakehouse analytics in the MySQL service, reducing ETL and separate analytics databases. Since 2016, SQL Server has used columnstore indexes for real-time operational analytics, letting analytical queries run alongside transactional workloads.101112

The question, then, is how to make HTAP affordable, open, and easy enough to deploy.

The traditional answer is buying a commercial database or cloud service and entrusting the complexity to its vendor. That works, sometimes very well. The costs include licensing, cloud lock-in, opaque implementation, and ecosystem portability. Open source needs another path. Rather than writing an entire OLAP kernel inside PostgreSQL or duplicating a whole analytics system, join PG's transactional world to DuckDB's analytical engine.

DuckDB and PG are the most practical open-source convergence path for now

DuckDB and PostgreSQL clearly complement each other. PG is a system database with strong transactions, a broad ecosystem, and powerful extensions. DuckDB is an embedded, vectorized, column-friendly analytical engine.

That's why I see DuckDB plus PG as a candidate for a de facto open-source HTAP standard for now. Its name and community buzz matter less than its engineering fit: transactional data stays in PG, analytical execution can use DuckDB, existing SQL and application connections change as little as possible, and data copying and ETL are minimized.

Alibaba Cloud's rds_duckdb illustrates the appeal. Its public documentation describes an AP acceleration engine for RDS PostgreSQL that introduces DuckDB, column-store tables, and vectorized execution, emphasizing that existing queries need no modification.13 Cloud providers see the same need: users want faster analytics beside their transactional database without having to maintain another complex system.

Recent discussions about PostgreSQL extensions and the controversy around the cloud provider's rds_duckdb arose in that same setting.1415 Whether cloud providers can integrate open source isn't the issue. Open-source licenses allow commercial use, and making a project a stable hosted service has real value. The real question is whether a product drawing on or using open source credits its sources, respects the license, explains the boundaries, and gives back to the community where possible. DuckDB and pg_duckdb both use the permissive MIT license. Retaining the copyright notice and license text is a basic requirement.1617

If a cloud provider turns a community approach into a product but implies in marketing that only the cloud version is advanced while self-hosted open source is second-rate, its mistake is in how it views the ecosystem. The open ecosystem is the foundation of this PostgreSQL wave, rather than the closed packaging inside any cloud provider.

Where competition will take place

I expect future database competition to have three layers.

The first is the kernel. PostgreSQL is already strong enough that, except for genuinely extreme requirements, new teams get diminishing returns from writing a general-purpose kernel from scratch.

The second is extensions. Search, vectors, time series, geography, graphs, queues, OLAP, and AI inference will continue to produce new PG extensions. Competition can move quickly because developers can reuse PG's foundation and concentrate on their specialty.

The third is distributions and services. Whoever makes extension selection, compatibility matrices, permissions, upgrades, monitoring, backups, HA, package management, and cloud deployment work smoothly will put the platform's capabilities in ordinary teams' hands. People saying “Postgres for everything” often overlook this operational layer. For production, an extension ecosystem that can't be installed, upgraded, observed, and rolled back reliably isn't a complete product.

My conclusion: PostgreSQL may not swallow every database, but it will absorb many use cases that never needed a separate database in the first place. HTAP is an industry-wide trend, and commercial vendors have demonstrated real demand. On the open-source side, DuckDB plus PostgreSQL is currently the most natural and persuasive engineering route. What matters is using PG's platform interfaces to combine a transactional system and an analytics engine with as little friction as possible, without forcing everything into one kernel.

That's why I prefer to think of PG as the database world's operating system, beyond its role as an RDBMS. Its importance lies less in how many features are built in today than in how many people can add the next generation of database capabilities without rewriting the foundation.

References

Footnotes

  1. Hellerstein, J. M., & Stonebraker, M. (2019). Looking Back at Postgres. arXiv:1901.01973. https://arxiv.org/abs/1901.01973 ↩

  2. PostgreSQL Global Development Group. (n.d.). Chapter 36. Extending SQL. PostgreSQL 18 Documentation. Retrieved June 11, 2026, from https://www.postgresql.org/docs/18/extend.html ↩

  3. PostgreSQL Global Development Group. (n.d.). CREATE EXTENSION. PostgreSQL 18 Documentation. Retrieved June 11, 2026, from https://www.postgresql.org/docs/18/sql-createextension.html ↩

  4. PostgreSQL Global Development Group. (n.d.). Chapter 58. Writing a Foreign Data Wrapper. PostgreSQL 18 Documentation. Retrieved June 11, 2026, from https://www.postgresql.org/docs/18/fdwhandler.html ↩

  5. Oracle. (n.d.). Pluggable Storage Engine Architecture. MySQL 8.4 Reference Manual. Retrieved June 11, 2026, from https://dev.mysql.com/doc/refman/8.4/en/pluggable-storage.html ↩

  6. Graefe, G. (1994). Volcano - An Extensible and Parallel Query Evaluation System. IEEE Transactions on Knowledge and Data Engineering, 6(1), 120-135. https://doi.org/10.1109/69.273032 ↩

  7. DuckDB. (n.d.). PostgreSQL Extension. DuckDB Documentation. Retrieved June 11, 2026, from https://duckdb.org/docs/stable/core_extensions/postgres.html ↩

  8. DuckDB. (n.d.). pg_duckdb: Official PostgreSQL Extension for DuckDB. GitHub. Retrieved June 11, 2026, from https://github.com/duckdb/pg_duckdb ↩

  9. Zhang, C., Li, G., Zhang, J., Zhang, X., & Feng, J. (2024). HTAP Databases: A Survey. IEEE Transactions on Knowledge and Data Engineering. https://doi.org/10.1109/TKDE.2024.3389693 ↩

  10. Oracle. (n.d.). Introduction to Oracle Database In-Memory. Oracle Database 21c Documentation. Retrieved June 11, 2026, from https://docs.oracle.com/en/database/oracle/oracle-database/21/inmem/intro-to-in-memory-column-store.html ↩

  11. Oracle. (n.d.). MySQL HeatWave. Retrieved June 11, 2026, from https://www.oracle.com/mysql/heatwave/ ↩

  12. Microsoft. (2025, April 14). Columnstore indexes: Overview. Microsoft Learn. Retrieved June 11, 2026, from https://learn.microsoft.com/en-us/sql/relational-databases/indexes/columnstore-indexes-overview ↩

  13. 阿里云. (2024, October 15). 云数据库 RDS:RDS PostgreSQL新增AP加速引擎(rds_duckdb). Retrieved June 11, 2026, from https://www.alibabacloud.com/help/zh/rds/apsaradb-rds-for-postgresql/apsaradb-rds-for-postgresql-supports-rds-duckdb-for-ap-query-acceleration ↩

  14. 冯若航. (n.d.). PostgreSQL 正在吞噬数据库世界 [Blog post]. Retrieved June 11, 2026, from https://vonng.com/pg/pg-eat-db-world/ ↩

  15. 冯若航. (n.d.). 阿里云rds_duckdb:致敬还是抄袭? [Blog post]. Retrieved June 11, 2026, from https://vonng.com/cloud/rds-duckdb/ ↩

  16. DuckDB. (n.d.). duckdb/LICENSE. GitHub. Retrieved June 11, 2026, from https://github.com/duckdb/duckdb/blob/main/LICENSE ↩

  17. DuckDB. (n.d.). pg_duckdb/LICENSE. GitHub. Retrieved June 11, 2026, from https://github.com/duckdb/pg_duckdb/blob/main/LICENSE ↩

© 2026 borui. All rights reserved. This content may be freely reproduced, displayed, modified, or distributed with proper attribution to borui and a link to the article: borui (2026-06-09). PostgreSQL, DuckDB, and the long history behind databases as platforms. https://caiborui.com/blog/2026-06-09-zh-postgresql-htap-duckdb-extension-platform-entrans

@misc{borui2026-580504d0,
  author = {borui},
  title = {{PostgreSQL, DuckDB, and the long history behind databases as platforms}},
  year = {2026},
  publisher = {borui's blog},
  url = {https://caiborui.com/blog/2026-06-09-zh-postgresql-htap-duckdb-extension-platform-entrans}
}