Reflections on writing a book

Vibhor Kumar and I wrote ‘AI-Ready PostgreSQL 18: Building Intelligent Data Systems with Transactions, Analytics, and Vectors,’ which was published by Packt Publishing in April 2026. We started thinking about the book in April 2025, began working with Packt in May 2025, and, 580 pages later, the book was published in April 2026.

In this blog, I reflect on why we wrote the book, how we went about it, and what I learned from the process.

Why?

Vibhor and I have been working together since 2013. We met at EnterpriseDB (EDB), where we worked to solve customer problems, help Fortune 500 companies succeed with Postgres, and help them understand the art of the possible. Ed Boyajian was the CEO, and based on his experience at Red Hat, we all knew that the time had come for open source to rule the database world, just as Linux had taken over from proprietary operating systems years earlier.

But my love for databases, especially relational databases, goes back much farther. In 1982/83, I had the opportunity to take database courses with Prof. Theo Härder and Dr. Andreas Reuter, the team that coined the term ACID (Atomic, Consistent, Isolated, and Durable) to characterize the key value proposition of relational databases. The clarity and (relative) simplicity of the relational model intrigued me. My PhD thesis was heavily influenced by the idea that relational frameworks could guide knowledge modeling and acquisition for expert systems.

Once I joined EDB and was exposed to people like Bruce Momjian, Dave Page, Robert Haas, Tom Kincaid, Vibhor Kumar, and, much later, Simon Riggs, I began to understand that commercial databases like Oracle, SQL Server, or DB2 didn’t stand a chance against the Postgres innovation juggernaut. My background in relational databases convinced me that non-relational approaches, such as MongoDB, would not have long-term staying power because they were niche solutions lacking the conceptual clarity and guidance that relational techniques, such as Normal Forms, could provide. Meeting Prof. Michael Stonebraker, who was an advisor to EDB, and understanding the depth of the vision behind Postgres’ object-relational model, which allowed new datatypes to be integrated into the database without major contortions, contributed to the excitement.

When I left EDB in 2025, I had seen Fortune 500 companies undergo wholesale Postgres migrations; I had seen government agencies replace proprietary databases with open source for the most demanding and critical applications; I had seen Postgres used successfully for transactions and analytics; and with the advent of AI vectors as a Postgres extension, I realized that Michael Stonebraker’s vision of the extensible database would carry Postgres to a whole new level: the data platform for AI, analytics, and transactions. I had the urge to think this through, write it up, and share my convictions.

Vibhor and I discussed this idea, and since Vibhor is already a successful coauthor of the ‘PostgreSQL Cookbook’ published by Packt, we decided to approach Packt to see if they would be interested in publishing this book. Indeed, they were!

Some might say we were standing on the shoulders of giants, but I was intimidated by the ‘prior art’ from folks like Bruce Momjian (PostgreSQL: Introduction and Concepts, Addison Wesley, 2000), Simon Riggs et.al. (PostgreSQL Administration Cookbook, Packt Publishing 2023), Hans-Jürgen Schönig, Regina Obe (PostgreSQL Up and Running, O’Reilly, 2017), and Dimitri Fontaine (The Art of PostgreSQL, 2017) – books that I had reviewed in 2020. We had big shoes to fill!

How

We wanted to teach readers, through hands-on examples, that Postgres is the ideal data platform for 95%+ of transactional, analytical, and AI applications. We also wanted to help readers understand that modularization makes it easy to leverage a general-purpose tool like Postgres for specialized tasks such as analytics and AI. So we decided to create a learning lab that included a geo-distributed e-commerce platform, a centralized analytics system, and a natural language AI platform. This would allow us to teach architecture for e-commerce transactions, analytical concepts such as star schemas and data vaults, semantic search, the model-context protocol, AI vectors, chat completions, and LLM integrations.

‘Zero Fluff’ was one of our goals. We wanted to make sure that all the sample code works and that readers could follow and learn from non-trivial but understandable examples. All the code would be in a public repo for everyone to try, use, and comment on.

Boy, that turned out to be a steep hill to climb! Based on the technical reviewer’s feedback, I think we succeeded in creating a fully reproducible distributed system that uses a range of Postgres extensions (pgvector, pgbackground, pg_squeeze, pgaudit, btree_gist, unaccent, pg_trgm, …) and logical replication to teach Postgres development and architecture. I think it worked, but I am anxiously awaiting more reader feedback!

To make the book easier to write and read, we divided it into four parts: Introduction and history of Postgres; Postgres for transactional systems; Postgres for analytics; and Postgres for AI. We took turns writing and reviewing – and rewriting, arguing, and refining. I thought I knew things before I started writing the book, but trying to explain them to future readers, being concise, precise, and correct without being too wordy, turned out to be challenging. Having a collaborator such as Vibhor, who really understands Postgres (and Oracle, Mongo, SQL Server, etc.), was invaluable.

What I learned

At heart, I am a geek and a scientist. That’s how I started my career, and I always feel best when I truly understand how something works. Only then am I confident I can explain how it works, how to use it, and where the pitfalls are. Writing the book helped me do that at scale (at least, I hope it did), and it helped me prepare the Postgres classes that I teach at the Digital Learning Hub.

There was also a selfish reason for writing the book. As a CTO, Chief Customer Officer, and executive at a fast-growing technology company, I never had enough time to organize my thoughts and reflect. Writing the book gave me that opportunity.

I cannot thank the technical reviewers, Laetitia Avrot and Umair Shahid, enough for digging through 580 pages, checking every example, and identifying a good number of ‘improvement opportunities’. The team at Packt, especially the editorial reviewer Saba Umme Salma, was super helpful.

Ed Boyajian’s leadership at EDB provided the foundation for this work, and his gracious foreword is the keystone of the book.

Let us know what you think!