---
title: "Sharding Postgres without extensions with PgDog founder, Lev Kokotov"
url: "https://aaronfrancis.com/videos/sharding-postgres-without-extensions-with-pgdog-founder-lev-kokotov"
path: "/videos/sharding-postgres-without-extensions-with-pgdog-founder-lev-kokotov"
type: video
author: Aaron Francis
published: 2025-08-19
topic: Databases
keywords: [pgdog, postgres sharding, lev kokotov, pgcat, query parsing, cross-shard queries, database resharding, postgres extensions, pg bouncer, replication streams, orchestration, design partners]
youtube_url: "https://www.youtube.com/watch?v=1Rch9qEJUcY"
chunked: true
full_bytes: 79442
section_count: 27
full_url: "/videos/sharding-postgres-without-extensions-with-pgdog-founder-lev-kokotov/full.md"
site_index: "/llms.txt"
keyword_index: "/llms/keywords.txt"
---

# Sharding Postgres without extensions with PgDog founder, Lev Kokotov

## Sections (77.6 KB full document — follow any link to read verbatim)

This page is long enough to hit agent truncation cliffs if fetched all at once. Pick the section matching your question below to read it 100% verbatim (< 35 KB each), or open the [full unsplit document (77.6 KB)](/videos/sharding-postgres-without-extensions-with-pgdog-founder-lev-kokotov/full.md).

### 1. Intro (00:00–01:46 · 1.9 KB)
Aaron Francis: Welcome back, my friends. I'm so glad that there are enough people that care about this stuff that I can make a podcast out of it. It's, it's a great delight for me. My name is Aaron Fr...
Keywords: `lev kokotov`, `intro`, `lev`, `pgdog`, `kokotov`, `postgres`, `sponsors`, `talking`
[Read section 1 verbatim](/videos/sharding-postgres-without-extensions-with-pgdog-founder-lev-kokotov/sections/1-intro.md)

### 2. Lev’s self-taught to computer science degree journey (01:47–04:50 · 4.0 KB)
Lev Kokotov: We could talk about that, but that's the short summary about me, I think.
Keywords: `computer science`, `science degree`, `science`, `self-taught`, `computer`, `degree`, `red alert`, `lev self-taught`
[Read section 2 verbatim](/videos/sharding-postgres-without-extensions-with-pgdog-founder-lev-kokotov/sections/2-levs-self-taught-to-computer-science-degree-jou.md)

### 3. Transition to Postgres discussion (04:50–05:23 · 0.7 KB)
Aaron Francis: Oh, man. So interesting. Okay, that's not what we're here to talk about, but that is-
Keywords: `postgres discussion`, `postgres`, `transition`, `discussion`, `pgdog`, `exists`, `pgcat`
[Read section 3 verbatim](/videos/sharding-postgres-without-extensions-with-pgdog-founder-lev-kokotov/sections/3-transition-to-postgres-discussion.md)

### 4. History of PgCat (05:24–07:10 · 2.2 KB)
Lev Kokotov: Yeah, for sure. Um, I wrote pgcat between jobs. Uh, I was, uh, like a database engineer at Instacart for four years, and we ran into all kinds of, you know, scaling problems with Postgres...
Keywords: `pgcat`, `history`, `kokotov`, `wrote pgcat`, `dbs`, `jobs`, `pgbouncer`, `instacart`
[Read section 4 verbatim](/videos/sharding-postgres-without-extensions-with-pgdog-founder-lev-kokotov/sections/4-history-of-pgcat.md)

### 5. What PG Cat does and key features (07:10–08:59 · 2.4 KB)
Aaron Francis: Okay
Keywords: `pg cat`, `key features`, `pgcat`, `features`, `cat`, `key`, `load balancing`, `multiple replicas`
[Read section 5 verbatim](/videos/sharding-postgres-without-extensions-with-pgdog-founder-lev-kokotov/sections/5-what-pg-cat-does-and-key-features.md)

### 6. Why Lev built PgCat instead of extending PG Bouncer (09:00–10:13 · 1.4 KB)
Aaron Francis: Mm
Keywords: `pgcat`, `lev built`, `built pgcat`, `pgcat instead`, `extending pg`, `pg bouncer`, `lev`, `extending`
[Read section 6 verbatim](/videos/sharding-postgres-without-extensions-with-pgdog-founder-lev-kokotov/sections/6-why-lev-built-pgcat-instead-of-extending-pg-boun.md)

### 7. PG Cat’s current status and usage (10:13–12:43 · 3.1 KB)
Lev Kokotov: Um, well, so unfortunately, like we don't maintain it anymore. Uh, I moved everything to PGDog. Um, and the reason for that was, uh, the architecture for PgCat was kinda like... It was li...
Keywords: `pg cat`, `cat current`, `current status`, `pgcat`, `cat`, `pgdog`, `current`, `status`
[Read section 7 verbatim](/videos/sharding-postgres-without-extensions-with-pgdog-founder-lev-kokotov/sections/7-pg-cats-current-status-and-usage.md)

### 8. Moving from PgCat to PgDog (12:43–13:08 · 0.5 KB)
Aaron Francis: Is that correct?
Keywords: `pgdog`, `pgcat`, `moving`, `correct`, `kokotov`
[Read section 8 verbatim](/videos/sharding-postgres-without-extensions-with-pgdog-founder-lev-kokotov/sections/8-moving-from-pgcat-to-pgdog.md)

### 9. Applying to YC as a solo founder (13:09–16:45 · 4.7 KB)
Lev Kokotov: Yeah. That's a, that's a great one. So this time I didn't take a month. Uh, this time I took about six months between, between, between gigs. So my last company, you know, uh, shut down a...
Keywords: `solo founder`, `solo`, `gary tan`, `founder`, `applying`, `kokotov`, `mm-hmm`, `y combinator`
[Read section 9 verbatim](/videos/sharding-postgres-without-extensions-with-pgdog-founder-lev-kokotov/sections/9-applying-to-yc-as-a-solo-founder.md)

### 10. YC pitch: the market gap for Postgres sharding (16:46–18:51 · 2.4 KB)
Lev Kokotov: Yeah, no, that's a great question. Um, well, a lot of people run Postgres these days. Uh-
Keywords: `postgres`, `yc pitch`, `market gap`, `postgres sharding`, `pitch`, `market`, `gap`, `sharding`
[Read section 10 verbatim](/videos/sharding-postgres-without-extensions-with-pgdog-founder-lev-kokotov/sections/10-yc-pitch-the-market-gap-for-postgres-sharding.md)

### 11. High-level overview of PgDog (18:52–23:51 · 6.0 KB)
Lev Kokotov: Yeah. Great question. So if you want to associate one thing with pgdog, it's gonna be sharding Postgres-
Keywords: `pgdog`, `high-level overview`, `high-level`, `overview`, `kokotov`, `postgres`, `citus`, `app`
[Read section 11 verbatim](/videos/sharding-postgres-without-extensions-with-pgdog-founder-lev-kokotov/sections/11-high-level-overview-of-pgdog.md)

### 12. Why PgDog is not an extension (23:51–26:00 · 2.4 KB)
Aaron Francis: And is that fully informed by, um, your time trying to scale Citus and running into those bottlenecks at Instacart, or was there some other critical insight that you said, "I don't want...
Keywords: `pgdog`, `extension`, `inside postgres`, `kokotov`, `distribution problem`, `postgres`, `deploy`, `postgresml`
[Read section 12 verbatim](/videos/sharding-postgres-without-extensions-with-pgdog-founder-lev-kokotov/sections/12-why-pgdog-is-not-an-extension.md)

### 13. When to build Postgres extensions vs standalone tools (26:00–28:11 · 2.8 KB)
Aaron Francis: So one of Postgres's, um, I think one of their, one of, one of their great, um, like, reasons to use it is there's an extension for everything. It's like, "Hey, we'll just put everythin...
Keywords: `postgres`, `standalone`, `build postgres`, `postgres extensions`, `extensions vs`, `vs standalone`, `standalone tools`, `extensions`
[Read section 13 verbatim](/videos/sharding-postgres-without-extensions-with-pgdog-founder-lev-kokotov/sections/13-when-to-build-postgres-extensions-vs-standalone.md)

### 14. PgDog architecture and query parsing (28:11–30:39 · 3.0 KB)
Aaron Francis: And so, um, I guess talk to me about, um, talk to me about the, like the architecture. I- Is it built in Rust as well? Okay, so this is, this is a, a Rust application that sits in front...
Keywords: `pgdog`, `pgdog architecture`, `query parsing`, `architecture`, `query`, `parsing`, `keep track`, `kokotov`
[Read section 14 verbatim](/videos/sharding-postgres-without-extensions-with-pgdog-founder-lev-kokotov/sections/14-pgdog-architecture-and-query-parsing.md)

### 15. Handling cross-shard queries and current capabilities (30:40–33:56 · 4.2 KB)
Aaron Francis: Hmm. We're moving the wrong way, aren't we?
Keywords: `cross-shard queries`, `queries`, `handling cross-shard`, `current capabilities`, `cross-shard`, `current`, `capabilities`, `kokotov`
[Read section 15 verbatim](/videos/sharding-postgres-without-extensions-with-pgdog-founder-lev-kokotov/sections/15-handling-cross-shard-queries-and-current-capabil.md)

### 16. How PgDog shards an existing large Postgres database (33:56–36:37 · 3.0 KB)
Aaron Francis: Because, you know, to the, to the application it should be, and is, transparent. You just connect to pgdog and do your thing, and presumably you're doing, you know, where team ID equals...
Keywords: `pgdog`, `postgres database`, `postgres`, `shards`, `database`, `pgdog shards`, `existing large`, `large postgres`
[Read section 16 verbatim](/videos/sharding-postgres-without-extensions-with-pgdog-founder-lev-kokotov/sections/16-how-pgdog-shards-an-existing-large-postgres-data.md)

### 17. Parallel replication streams for faster sharding (36:37–39:25 · 3.8 KB)
Aaron Francis: Ah, cool.
Keywords: `replication`, `parallel replication`, `replication streams`, `faster sharding`, `parallel`, `streams`, `sharding`, `replication slot`
[Read section 17 verbatim](/videos/sharding-postgres-without-extensions-with-pgdog-founder-lev-kokotov/sections/17-parallel-replication-streams-for-faster-sharding.md)

### 18. Alternate resharding approaches (39:25–42:52 · 4.3 KB)
Lev Kokotov: And then at the end, we actually, we took the, uh, the hash partition logic from Instacart, it was like the C code, and we ported it into, into Ruby, 'cause our app was in Ruby, and that'...
Keywords: `alternate resharding`, `resharding approaches`, `alternate`, `resharding`, `approaches`, `pg dog`, `kokotov`, `dog`
[Read section 18 verbatim](/videos/sharding-postgres-without-extensions-with-pgdog-founder-lev-kokotov/sections/18-alternate-resharding-approaches.md)

### 19. Where PgDog draws the orchestration line (42:52–44:28 · 1.6 KB)
Aaron Francis: Yeah. So the clean handoff is, um, PG Dog ends up with a connection to a bunch of Postgres databases. How it got- how those databases came into existence, where they live, uh, how long...
Keywords: `pgdog`, `pgdog draws`, `orchestration line`, `draws`, `orchestration`, `pg dog`, `planetscale`, `databases`
[Read section 19 verbatim](/videos/sharding-postgres-without-extensions-with-pgdog-founder-lev-kokotov/sections/19-where-pgdog-draws-the-orchestration-line.md)

### 20. Vision for PgDog Cloud vs bring-your-own-database (44:28–46:46 · 2.6 KB)
Aaron Francis: GCP or AWS or whatever. So at, uh, uh, I guess, what is your grand vision? Is it web orchestration, or is it bring me your databases and I will take care of them?
Keywords: `pgdog`, `cloud`, `pgdog cloud`, `cloud vs`, `vs bring-your-own-database`, `vision`, `bring-your-own-database`, `kokotov`
[Read section 20 verbatim](/videos/sharding-postgres-without-extensions-with-pgdog-founder-lev-kokotov/sections/20-vision-for-pgdog-cloud-vs-bring-your-own-databas.md)

### 21. Company status: first hire, design partners, and production use (46:47–51:06 · 5.3 KB)
Lev Kokotov: Yeah, no, for sure. Um, well, I just hired our first employee this week or last week.
Keywords: `production`, `company`, `design`, `company status`, `first hire`, `design partners`, `status`, `hire`
[Read section 21 verbatim](/videos/sharding-postgres-without-extensions-with-pgdog-founder-lev-kokotov/sections/21-company-status-first-hire-design-partners-and.md)

### 22. How deploys work for customers (51:06–52:41 · 2.1 KB)
Aaron Francis: The new guy fixes it. He, you know, pushes it to main. Then like, what is, what are your design partners, what does that deploy process look like to get the new version of pgdog without...
Keywords: `deploys work`, `customers`, `deploys`, `kokotov`, `prs`, `deploy`, `slack`, `test`
[Read section 22 verbatim](/videos/sharding-postgres-without-extensions-with-pgdog-founder-lev-kokotov/sections/22-how-deploys-work-for-customers.md)

### 23. Importance of building closely with design partners (52:42–54:04 · 1.8 KB)
Lev Kokotov: It's the only way this will ever work. Uh-
Keywords: `building closely`, `design partners`, `importance`, `closely`, `design`, `partners`, `kokotov`, `talking`
[Read section 23 verbatim](/videos/sharding-postgres-without-extensions-with-pgdog-founder-lev-kokotov/sections/23-importance-of-building-closely-with-design-partn.md)

### 24. Paid design partnerships and initial deployments (54:05–56:22 · 3.1 KB)
Aaron Francis: Is it, um, like what, where does the money come from right now? Are they paying you to implement you as a company, or are they paying you to implement this thing?
Keywords: `design partnerships`, `design`, `partnerships`, `initial`, `paid design`, `initial deployments`, `paid`, `deployments`
[Read section 24 verbatim](/videos/sharding-postgres-without-extensions-with-pgdog-founder-lev-kokotov/sections/24-paid-design-partnerships-and-initial-deployments.md)

### 25. Benefit of sitting outside Postgres for compatibility (56:23–58:31 · 2.9 KB)
Lev Kokotov: Easy.
Keywords: `postgres`, `sitting outside`, `outside postgres`, `benefit`, `pgdog`, `sitting`, `compatibility`, `kokotov`
[Read section 25 verbatim](/videos/sharding-postgres-without-extensions-with-pgdog-founder-lev-kokotov/sections/25-benefit-of-sitting-outside-postgres-for-compatib.md)

### 26. Near-term roadmap and long-term vision (58:32–1:01:17 · 3.6 KB)
Aaron Francis: Yeah. That's a, that's a good answer. There, I don't think there are any, there, there are no absolutes except the fact that there are no absolutes. So it sounds like, um, it sounds lik...
Keywords: `vision`, `near-term roadmap`, `long-term vision`, `pgdog`, `near-term`, `roadmap`, `long-term`, `six months`
[Read section 26 verbatim](/videos/sharding-postgres-without-extensions-with-pgdog-founder-lev-kokotov/sections/26-near-term-roadmap-and-long-term-vision.md)

### 27. Where to find Lev online (1:01:18–1:02:54 · 2.1 KB)
Lev Kokotov: Yeah. pgdog.dev, top right corner, book a demo. It's not a demo, it's just a call with me. I'm not gonna show you anything that you don't want, I swear to God. It's just a 15-minute call....
Keywords: `find lev`, `lev online`, `lev`, `online`, `pgdog`, `kokotov`, `show notes`, `levpgdog`
[Read section 27 verbatim](/videos/sharding-postgres-without-extensions-with-pgdog-founder-lev-kokotov/sections/27-where-to-find-lev-online.md)

---

## Related on aaronfrancis.com

- [Do the work you don’t want to do first](/newsletter/do-the-work-you-dont-want-to-do-first) *(Newsletter · 2025-08-29 · shared: pgdog, postgres sharding, lev kokotov)*
- [Vitess for Postgres, with the co-founder of PlanetScale](/videos/vitess-for-postgres-with-the-co-founder-of-planetscale) *(Video · 2025-07-01 · shared: connection pooling, query parsing)*
- [Heroku's glory days & Postgres vs the world, w/ Craig Kerstiens](/videos/herokus-glory-days-postgres-vs-the-world-w-craig-kerstiens) *(Video · 2024-09-24 · shared: postgres scaling, postgres extensions)*
- [Moving from Redis to SQLite with Mike Buckbee](/videos/moving-from-redis-to-sqlite-with-mike-buckbee) *(Video · 2024-11-26 · shared: database architecture)*
- [Make faster outbound requests with Laravel (10x faster, actually)](/videos/make-faster-outbound-requests-with-laravel-10x-faster-actually) *(Video · 2024-04-30 · shared: connection pooling)*

## Relevant Resources from Aaron Francis

- **[Mastering Postgres](https://databaseschool.com)** (overview on site: [/courses](/courses)): Deep-dive video course on PostgreSQL indexing, query performance, JSONB, full-text search, locking, and production operations.
- **[Mostly Technical Podcast](/podcast)**: Weekly podcast co-hosted by Aaron Francis and Ian Landsman covering Laravel, indie business, developer marketing, and building products.

## Search aaronfrancis.com (2-Hop Static Keyword Index)

Pick the alphabetical shard matching any topic to find exact pages across all articles, newsletters, videos, talks, and podcast transcripts (every shard is < 40 KB):
[A-B](/llms/keywords/a-b.txt) · [C](/llms/keywords/c.txt) · [D-E](/llms/keywords/d-e.txt) · [F-G](/llms/keywords/f-g.txt) · [H-J](/llms/keywords/h-j.txt) · [K-L](/llms/keywords/k-l.txt) · [M-N](/llms/keywords/m-n.txt) · [O-P](/llms/keywords/o-p.txt) · [Q-R](/llms/keywords/q-r.txt) · [S](/llms/keywords/s.txt) · [T-Z](/llms/keywords/t-z.txt) · [Directory](/llms/keywords.txt) · [Site Map](/llms.txt)

Shards for this page's topics: `pgdog` ([O-P](/llms/keywords/o-p.txt)), `lev kokotov` ([K-L](/llms/keywords/k-l.txt)), `query parsing` ([Q-R](/llms/keywords/q-r.txt)), `cross-shard queries` ([C](/llms/keywords/c.txt)).

## About Aaron Francis (Current Context)

Aaron Francis is VP of Marketing and Community at [Laravel](https://laravel.com), founder of [Try Hard Studios](https://tryhardstudios.com), creator of [Solo](https://soloterm.com), co-host of [Mostly Technical](/podcast), and author of [Mastering Postgres](/courses), [High Performance SQLite](/courses), [MySQL for Developers](/courses), and [Screencasting.com](/courses). Full bio: [/about](/about) · Current focus: [/now](/now).
