Home›Companies›PgDog

Scaling engine for PostgreSQL

PgDog is an application for sharding PostgreSQL. It understands SQL and can distribute queries automatically between databases. It's built for managed databases, like AWS RDS, and doesn't require any changes to application code or schema. In addition to sharding, PgDog is a load balancer and pooler, so it can act as a replacement for PgBouncer, RDS Proxy, and other Postgres scaling products. It brings the simplicity and performance of HTTP load balancing to the database. Built from the experience of sharding Postgres at Instacart during peak growth in 2020, PgDog is the answer to the old question: does Postgres scale? It does now.
Active Founders
Lev Kokotov
Lev Kokotov

Lev Kokotov, Founder

Second time technical founder, sharded Postgres at Instacart in 2020 during peak growth. Previously built PostgresML (AI + PostgreSQL = 🚀).
PgDog
Founded:2025
Batch:Spring 2025
Team Size:1
Status:
Active
Location:San Francisco
Primary Partner:Garry Tan
Company Launches
PgDog: Scaling PostgreSQL
See original launch post

Hey YC,

I’m Lev and I invented time travel… for your database.

“Huh?”

TLDR: PgDog is a proxy for scaling PostgreSQL. It can load balance traffic and shard databases, without changes to app code or using database extensions. What does this have to do with time travel? Keep reading.

https://www.youtube.com/watch?v=trSVJel3gyc

❌ The Problem

Scaling Postgres is a full time job. Your app is writing data but the database can’t keep up. You’re adding more databases and thinking of breaking the app into services to spread the load.

PgDog is for you if:

  • You had an outage caused by a bad query
  • Your database is unpredictable; app latency and uptime are all over the place
  • You know more about Postgres internals (like vacuum) than you’d like, and you just want it to work so you can go back to building your product

And you catch yourself day dreaming about the good old days, when you were pre-PMF and your DB was at 10% CPU.

đź‘· The Solution

Database problems should be solved at the database layer. PgDog is a load balancer, connection pooler, bouncer, and sharder. It speaks fluent SQL and understands every single Postgres query. It uses this knowledge to:

  • Distribute queries between shards, horizontally scaling your relational database
  • Load balance traffic between replicas
  • Block or rewrite queries you don’t like, e.g. queries that forgot an index or are missing the customer_id and were about to leak data

With PgDog, your DB is young again and ready to grow 10x. Written in Rust, for security and performance, PgDog is fully tested and ready for production.

🙏 The Ask

If any of this sounds familiar, get in touch! I’m happy to come work for you to fix your DB. I’ll stay in the basement and make PgDog scale Postgres, while you work on your startup.

You’re my ideal design partner if:

  • Postgres is your production database (naturally)
  • Despite your troubles, you love it and want to do more with it
  • You believe in first principles solutions to hard problems

Email lev@pgdog.dev, join our Discord, and give us a star on GitHub. Everything we build is open source.

👬 The Team

I’m a second time technical founder (previously co-founded PostgresML) and started the Instacart storage infra team. I scaled 100TB+ databases when Instacart grew 5x in 3 months. This is my second pet-inspired project for scaling Postgres (have you heard of pgcat?)