Skip to main content

4 posts tagged with "postgres"

View All Tags

A 2.5x faster Postgres parser with Claude Code

· 12 min read
Manan Gupta
Founding Engineer, Multigres

Building a production-grade parser is an exercise in discipline. You need to translate thousands of grammar rules exactly. You need to catch subtle bugs that only surface on edge cases you've never seen. You need to verify every decision against a reference implementation. There are no shortcuts.

I know this because I've done it before. I led the effort to build the MySQL parser for Vitess. That took over a year with help from talented contributors. So when we needed a Postgres parser for Multigres, I expected a similar timeline.

It took eight weeks. 287,786 lines of code. 304 files. 130 commits. 71.2% test coverage. 2.5x faster than the cgo (Go's C interop) alternative.

If you have comments or questions, please start a discussion on the Multigres GitHub repository.

High Availability and Postgres full-sync replication

· 7 min read
Sugu Sougoumarane
Creator of Multigres, Vitess

In order to achieve High Availability (HA) in Postgres, we need to have at least one other standby replica that keeps up with the primary’s changes near-real-time. Using Postgres physical replication is the most common method to achieve this.

High Availability also requires us to solve the problem of distributed durability. After all, we have to make sure that no transactions are lost when we failover to a standby. So, if we can make this work, we can avoid the need for an external system like a mounted cloud drive or other exotic solutions to ensure that we don’t lose data. We could just have all the servers use their local NVME drive for storage. This will serendipitously improve performance due to the drives being an order of magnitude faster than the network, and reduce costs since disk I/O does not incur network cost.

If you have comments or questions, please start a discussion on the Multigres GitHub repository.

Interview: Multigres on Database School

· 56 min read
Sugu Sougoumarane
Creator of Multigres, Vitess

Sugu discusses Multigres on the Database School YouTube channel. He shares the history of Vitess, its evolution, and the journey to creating Multigres for Postgres. The conversation covers the challenges faced at YouTube, the design decisions made in Vitess, and the vision for Multigres.

If you have comments or questions, please start a discussion on the Multigres GitHub repository.