September 20241:02:464.6k views

Heroku's glory days & Postgres vs the world, w/ Craig Kerstiens

About

In this interview, I dive deep with Craig Kerstiens from Crunchy Data into the world of Postgres, covering its rise to prominence, scaling at Heroku, and the power of Postgres extensions. Craig also shares insights on database sharding, the future of Postgres, and why developers love working with it.

Transcript

Everything we said

00:01

Aaron Francis

Welcome back to Database School. Uh, I'm your host, Aaron Francis, but more importantly, you're here to listen to the guests. Uh, today we're gonna be talking about Postgres, which may or may not be how you're supposed to pronounce it, but we have the expert here with us. We've got Craig Kerstiens, um, and I think I pronounced that correctly. So Craig, do you wanna give yourself a little introduction and we can get started?

00:24

Craig Kerstiens

Sure. Uh, so I'm Craig. I work over at Crunchy Data. We're kind of all things Postgres, have been around for a little over 10 years. Um, I've been doing Postgres for better or worse for going on, phew, maybe north of 15 years now. Um, uh, kinda stumbled into it, um, but had, you know, early, early product at Heroku.

00:45

Um, I was actually kind of the black sheep early at Heroku. I came on board there to launch their Python support.

00:50

Aaron Francis

Oh.

00:50

Craig Kerstiens

So, like everyone knows Heroku from the Ruby community, right?

00:53

Aaron Francis

Mm-hmm.

00:53

Craig Kerstiens

But came on board to actually kind of work on some of their other languages. Ended up doing a whole lot with Heroku Postgres, um, you know, helped them scale to, I think at the peak we were running, like, 1.5 million Postgres databases across all our customers.

01:06

Aaron Francis

Geez.

01:08

Craig Kerstiens

So the, you know, the idea of a one-in-a-million problem was, was once a week, right?

01:11

Aaron Francis

Yeah.

01:12

Craig Kerstiens

Um, left there to go to Citus Data.

01:15

Aaron Francis

Oh, okay.

01:15

Craig Kerstiens

Very different set of things. Instead of millions of customers, like, our average customer was 40 terabytes.

01:20

Aaron Francis

Geez.

01:20

Craig Kerstiens

The largest was 960 terabytes in a Postgres cluster. So not quite petabyte scale, but I'm gonna round up. I'm gonna cheat a little.

01:27

Aaron Francis

Uh, we can round up. Yeah, that's fine.

01:29

Craig Kerstiens

Um, they were acquired by Microsoft, ran all Azure Postgres for a little while, um, and then was kind of ready to get back to small team building again. As I, I kinda joke, um, it's, like, unfinished business from my Heroku Postgres days of just-

01:43

Aaron Francis

Mm-hmm

01:44

Craig Kerstiens

... making Postgres absolutely amazing for developers. Um, but that's kind of a little bit of my history. Basically Postgres for a long time, but I don't come from a database background. Like, I think you, you probably talk to a bunch of folks that are like, "Yeah, I spent 10 years at Oracle internals."

01:58

Aaron Francis

Mm-hmm.

01:58

Craig Kerstiens

And, you know, I contributed this feature and that feature to SQLite. I much more come at it from, like, a developer angle, and we'll probably get into some of that. But it, it's like-

02:08

Aaron Francis

Yeah, a man after my own heart. That is good. I like to hear that.

02:12

Craig Kerstiens

Yeah. It's, it's like I can, you know... I've actually never committed a line of code to Postgres, and it'll probably stay that way.

02:17

Aaron Francis

Mm-hmm.

02:18

Craig Kerstiens

But, um, it is a great database, and I'm, I'm definitely fond of it.

02:22

Aaron Francis

So I wanna hear about the glory days of Heroku. I was just, I was, I think I was just arguing with, um, Dax on Twitter, as one does, about, uh, everybody's trying to rebuild Heroku, and I'm like, "Yeah, let's do it. Bring, bring back good old Heroku." So when did you join them, and, and what was it like back then?

02:43

Craig Kerstiens

Uh, right around acquisition time. So-

02:46

Aaron Francis

Okay

02:46

Craig Kerstiens

... uh, it was around pre-acquisition, was a full-time employee just after. I joined, I don't remember my exact number, maybe 22, 23 employee. Um-

02:55

Aaron Francis

Oh, wow.

02:57

Craig Kerstiens

It was, it was still small then. Like, like, the all-hands meeting wasn't a meeting. Everyone just sat around the lunch table on Wednesdays, and the-

03:03

Aaron Francis

Yeah

03:03

Craig Kerstiens

... founders would talk some. Um, and yeah. So I, man, it was an interesting time. Like, like, now I kind of feel like I belong in tech. Like, imposter syndrome's a thing, right?

03:15

Aaron Francis

Sure.

03:15

Craig Kerstiens

You're, you're surrounded by smart people. I was reminiscing with a lot of us early Heroku folks, and we all felt like we didn't belong.

03:21

Aaron Francis

Mm-hmm.

03:21

Craig Kerstiens

And we're building something amazing and pushing each other. Um, there's a lot of talk these days about, you know, remote versus in office.

03:28

Aaron Francis

Mm-hmm.

03:28

Craig Kerstiens

And I, I don't think Heroku could've been created with that same culture remote. Like, th- there's just feeding off each other in a room.

03:34

Aaron Francis

Mm.

03:34

Craig Kerstiens

Not to say you can't build great things, but it was a time and place. Us and GitHub were similar, similar companies. Um, we-

03:41

Aaron Francis

Mm-hmm

03:41

Craig Kerstiens

... we had some folks in those early days leave from Heroku, go to GitHub, and, um, vice versa. Some of the early GitHub folks come over to Heroku. Um, man, there was a lot of philosophies in there. Like, I mean, at the core of it is how easy it is to deploy an app. And-

03:56

Aaron Francis

Mm-hmm

03:56

Craig Kerstiens

... I think it's easier today, but there's still nothing that matches or beats Git Push Heroku Master.

04:02

Aaron Francis

Hey, we'll get back to the interview in just one second, but since you're here, you like databases, you probably like Postgres. Let me tell you about Mastering Postgres. This is a course that I am teaching coming out October 15th. This is a way that you can master the most important part of your stack, your database. So go to masteringpostgres.com and sign up to hear when we release it.

04:25

Okay. Back to the interview. How is that possible? In the year of our Lord, 2024, how is it possible that we've lost Git Push Heroku Master?

04:35

Craig Kerstiens

I, I think I chimed a little bit on, on that thread, and someone's like, "But it's so easy to build a Docker file, and Rail gives you one by default." And I'm just like, "Cool. Great." And then when you wanna update it or muck with something, and systems depend, like, that's still all on you, right?

04:49

Aaron Francis

Yes.

04:49

Craig Kerstiens

Like-

04:49

Aaron Francis

Yes

04:50

Craig Kerstiens

... and what if I need a database? What if I need a Redis? The, the Heroku marketplace was ahead of its time, but it's the right time, right?

04:59

Aaron Francis

Mm-hmm.

04:59

Craig Kerstiens

The first Heroku add-ons, um, Redis To Go Heroku built and then gave away to Redis To Go to run.

05:05

Aaron Francis

Huh, I didn't know that. That's funny.

05:06

Craig Kerstiens

Um, I think it was also the same with, I wanna say it was maybe Zencoder, the first, like, video-

05:13

Aaron Francis

Uh-huh

05:13

Craig Kerstiens

... you know, transcript, like video encoding service. I think Heroku built the first one of that and gave it away to another co- Like, Heroku didn't wanna be everything.

05:22

Aaron Francis

Right.

05:22

Craig Kerstiens

But we wanted people to, like, best in class support these add-ons. So many of the early, early Heroku a- add-ons, Heroku built, and then we just gave away to a company and a friend that we knew to run them as full-on companies.

05:34

Aaron Francis

Just to start the extension or add-on flywheel turning a little bit.

05:38

Craig Kerstiens

Pretty much. Yep. Like-

05:39

Aaron Francis

Huh.

05:39

Craig Kerstiens

I mean-

05:40

Aaron Francis

I didn't know that

05:40

Craig Kerstiens

... we had people come and asking to, like, run Mongo and to run-

05:43

Aaron Francis

Uh-huh

05:44

Craig Kerstiens

... Redis, and eventually we caved on Redis, but, like, we said no, it's just Postgres for a long, long, long time.

05:50

Aaron Francis

Mm-hmm. That is super interesting. I did not know that. Um, that's some good lore right there. And then, am I understanding correctly that you either built or spearheaded the whole Dataclips thing?

06:05

Craig Kerstiens

I would, so myself and the rest of the team, aside from one person, were anti-Data Clips

06:12

Aaron Francis

Okay. Tell- for the first, uh, tell us what Data Clips is/was, uh, and then tell us, tell us that story as well.

06:18

Craig Kerstiens

So, so, so Data Clips inside Heroku was, like, one of the best features we ever built and used-

06:23

Aaron Francis

Mm-hmm

06:23

Craig Kerstiens

... within Heroku Postgres, that internally we dogfooded so much, and was one of the least adopted features of Heroku broadly. Like-

06:31

Aaron Francis

Hmm

06:31

Craig Kerstiens

... people just didn't use it. Um, it's basically like a GitHub gist-

06:36

Aaron Francis

Mm-hmm

06:36

Craig Kerstiens

... but live against your database. So you write some SQL, you save it, and you get a unique URL, right? And you just send this around the internet, you can share it, um, you could secure it if you wanted with, like, SSO, but you could also have it, you know, it's a unguessable URL-

06:51

Aaron Francis

Mm-hmm

06:51

Craig Kerstiens

... that you can just go and, like, append .CSV to and it'll-

06:54

Aaron Francis

Hmm

06:54

Craig Kerstiens

... download a CSV. So internally, once we had this, um, we would build up this SQL f- like, just write SQL that's live-

07:03

Aaron Francis

Mm-hmm

07:03

Craig Kerstiens

... against the database. It'll auto refresh every hour. And then within Google Sheets, instead of rolling out, like, Metabase or-

07:10

Aaron Francis

Mm-hmm

07:10

Craig Kerstiens

... Power BI or whatever BI reporting tool, in just Google Sheets you can do, like, equal import data, open parentheses, quote, URL.CSV-

07:21

Aaron Francis

Mm-hmm

07:21

Craig Kerstiens

... and it'll live load this.

07:24

Aaron Francis

Yep.

07:24

Craig Kerstiens

So-

07:24

Aaron Francis

I, I love the import data in Google Sheets. You're speaking directly to me. Okay. So keep going.

07:30

Craig Kerstiens

So we, we ran the bulk of Heroku business, like BI reports, for a-

07:35

Aaron Francis

Uh-huh

07:35

Craig Kerstiens

... long, long, long time just on Data Clips against live production, a read replica of our production database. Load these up in Google Sheets, create some charts on them, and, and boom. That was our, like, KPI board meeting. Like, every team, like, "Where's our dashboard?" Um, we would sync, you know, Zendesk tickets into a Heroku database via some, like, you know, Heroku scheduler.

08:00

Aaron Francis

Mm-hmm.

08:00

Craig Kerstiens

And then, like, let's chart how many critical tickets, and then, you know, what, what type... Like, all of just basically, like, crude, like, sync some data into Postgres and chart it. Now, where did it come from? One PM had this idea that it was like he wanted to, like, just write... He wanted this feature, right, and functionality.

08:17

Aaron Francis

Right.

08:17

Craig Kerstiens

And the way you get buy-in at Heroku wasn't, like, uh, PMs told people what to do, or execs told people what to do. It was like, you motivate someone that this is a good idea, and you get people excited, and they go build it.

08:29

Aaron Francis

Hmm.

08:30

Craig Kerstiens

It was, it was not a top-down, and it, you know, if you thought something was interesting, you build a demo and show it off, and you get people behind it, and that's how new products launch.

08:38

Aaron Francis

Mm-hmm.

08:39

Craig Kerstiens

Um, I mean, Heroku's Buildpack stuff and the Cedar stack was a couple of people hacking at a Tahoe offsite for a week on this is how it could work, showing it to the rest of the company, and light bulbs going off, right? Um, so very much, like, best ideas win and you get alignment behind them.

08:58

Aaron Francis

Mm-hmm.

08:58

Craig Kerstiens

He got no buy-in from the team. No one wanted to build this. Everyone thought it was a terrible idea. So he went and found some third-party consultants to-

09:06

Aaron Francis

Except you.

09:08

Craig Kerstiens

I, I mean, at the time, no. It was, I was, I was just like, "No, we, like, should be doing these other things for databases."

09:15

Aaron Francis

Okay.

09:15

Craig Kerstiens

And, like, it was, uh, it was Matt Saldo was the PM and pushed it.

09:18

Aaron Francis

Mm-hmm.

09:18

Craig Kerstiens

And I mean, we all had a mea culpa later that it was like we were wrong on this one- ... of the entire team. But he just found a third-party consultant team to build this as a third-party SSO app. And then, man, detangling that and making it first party was such-

09:33

Aaron Francis

Hmm

09:33

Craig Kerstiens

... a pain 'cause it was a, it was a hack. But, um, it wasn't a hack, but it was not built in the way we would've built it if we built it first party. So that was, untangling that was, was fun. Um, but yeah, at Crunchy that was one of the first things that I'm like, "All right. We're rebuilding this and we're re- rebuilding it better, and it's gonna be, like, core and central to our product." 'Cause it's, like, once you have the data, writing SQL is easy to get the answer.

09:56

And-

09:56

Aaron Francis

Yes

09:56

Craig Kerstiens

... so many times in a live meeting, it's like, "All right. I can write this query against the database and have an answer." And-

10:03

Aaron Francis

Yes

10:03

Craig Kerstiens

... within Heroku Postgres, we always had a saying, like, "If we've got data, let's use it. If all we've got are opinions, let's go with mine."

10:10

Aaron Francis

Hmm. I like that. That's my new-

10:13

Craig Kerstiens

Yeah. We, we-

10:13

Aaron Francis

I'm g- I'm gonna steal that.

10:16

Craig Kerstiens

W- we went to using data a lot, and it's... So it's like live in a meeting, like, we'll move on from a topic and five minutes later we'll circle back 'cause it's like, "Oh, I've got the results of how many people, like, actually set up logging or, like, don't use HA," or, um, I mean, as a database provider, I, I love to look at how many customers have a, a name of their database, like prod is in the name, and they don't have-

10:36

Aaron Francis

Mm-hmm

10:36

Craig Kerstiens

... high availability enabled.

10:37

Aaron Francis

Mm-hmm. That's a pretty good, that's a pretty good target list of people to reach out to and, uh, get them to activate that. So I like, um, I think what resonates with me about all that is I like the central source of truth, and I like owning it. Like, you were talking about, uh, Zendesk tickets and stuff, and once you start, like, once you start tying, trying to tie all these sources together, I've always found that the easiest way to do that is use my programming language/framework and just put it in

11:07

my database. And so, like-

11:08

Craig Kerstiens

Yeah

11:09

Aaron Francis

... that's the, that's the thing that I like. You know, as we're building out these, you know, learning platforms, I'm syncing all the data down to our database so that I can just look at stuff. And so that super resona- resonates with me as, like, the developer. So, like, you, uh, this guy paid somebody to build it, then y'all brought it in-house, and then y- you said it wasn't very widely adopted.

11:32

Did, uh, Heroku users not use it that much, but the people that did loved it? 'Cause I've heard about it from... I still use Heroku for one thing, but I used to use Heroku a lot, but I never used Postgres, and so I never used Data Clips. But I have heard it's got, like, a cult following of people that still love Data Clips, miss Data Clips.

11:52

It sounds like you included.

11:54

Craig Kerstiens

Yeah.

11:54

Aaron Francis

So what was the story, like, once y'all rolled it out in-house or, or the first party version of it? Did people use it?

12:02

Craig Kerstiens

Y- I mean, yeah. I think it was, like, that cult following, but it was a really small cult, right?

12:08

Aaron Francis

Yeah.

12:08

Craig Kerstiens

It never caught on. It was never mass use. Um, you know, at, at one point in time, we had this idea build, idea of building- Heroku Postgres was built as Postgres for Heroku users.

12:19

Aaron Francis

Mm-hmm.

12:20

Craig Kerstiens

But we never created, like, the Heroku experience for Postgres. Like, the idea of Git Push Heroku Master.

12:28

Aaron Francis

Mm-hmm.

12:28

Craig Kerstiens

Um, we had a prototype one time of what if you ran Git Bisect on your database? Like, show me, like, when this data changed based on this query, right? Um, within the cloud. Like, we already have point-in-time recovery.

12:41

Aaron Francis

Mm-hmm.

12:41

Craig Kerstiens

We can just replay the write-ahead log, see when data changes. If you wanna know when, you know, Aaron updated his email to be, you know, TryHard Studios, right? Like, okay, when did that happen? When did he-

12:54

Aaron Francis

Mm-hmm

12:54

Craig Kerstiens

... change his account to that? For whatever reason- ... well, that, we have all of that history in the WAL.

13:01

Aaron Francis

Mm-hmm.

13:01

Craig Kerstiens

And we can just spin up multiple followers and slowly replay bit by bit by bit. Like, that's a magical-

13:06

Aaron Francis

That's kinda cool

13:07

Craig Kerstiens

... experience. Um, a lot of... I mean, it's fascinating. Back then, we had, um, a lot of the, the stuff that exists in the, the current clouds of, like, I want branching for my database.

13:20

Aaron Francis

Mm-hmm.

13:20

Craig Kerstiens

Like, we actually had that support at one point, and no one used it. We were just like, "There's no point." Postgres itself, way, way, way back, used to have time travel. Like, people talk, they used, like, Datomic loved the time travel functionality, and it's like no one used it in Postgres. Like, they emailed out to the mailing list, and it was crickets. So a lot of these things, I think, are, are f- are fun and shiny, but not what purveyors of databases use all the time.

13:45

Aaron Francis

Mm-hmm.

13:45

Craig Kerstiens

Data Clips was one of those things that, like, I'm, I'm shocked, I think because it's... I think it's because often, like, once a company gets to having, like, a BI team or an analytics team-

13:54

Aaron Francis

Yeah

13:54

Craig Kerstiens

... they wanna own their tools and, and not be kind of in the native stack usually.

13:59

Aaron Francis

Yeah. That makes sense to me. So it falls in this real, uh, real small sliver of companies that would use it. It's the people that are kinda, like, uh, probably pretty early founder hacker types that want to go in, write raw SQL against, you know, the, the database, versus setting up Metabase, Tableau, some, you know, some other BI tool once you get a big team.

14:25

Craig Kerstiens

Yeah. You, you've got just as enough people where it's like, well, you know, 'cause you can connect your database and write SQL, and-

14:31

Aaron Francis

Mm-hmm

14:31

Craig Kerstiens

... you know, that's easy to do, but, like, I need to share this with three people, right?

14:36

Aaron Francis

Mm-hmm.

14:36

Craig Kerstiens

And one of them's not technical, and one of them is, so they wanna see the SQL. So it's, uh... But I found it fascinating once we started sharing it at Heroku, that, um, one of my favorite things was the marketing team would be like, "Hey, we need to know our monthly active users." And I'm like, "Okay, great. Here's, here's the report for that." And they'd come back next month and be like, "Hey, I need this again." I'm like-

14:58

Aaron Francis

Mm-hmm

14:58

Craig Kerstiens

... "Okay." Like, well, did I filter out the... We had, like, at one point, like, a Facebook app partnership. Like, did I filter-

15:05

Aaron Francis

Mm

15:05

Craig Kerstiens

... those out last month or not? Like, I don't remember how I did that.

15:08

Aaron Francis

Oh, right.

15:09

Craig Kerstiens

So, um, or they need, like, "Hey, instead of last month, I need the last two weeks." And they see the Data Clip, which had the SQL in there, and they're like, "Hey, Craig, what happens if I type this and change this from one month to two week?" Like-

15:21

Aaron Francis

Mm-hmm

15:21

Craig Kerstiens

... and suddenly we have marketing people like, "Hey, is, am I writing SQL now?"

15:25

Aaron Francis

Mm-hmm.

15:25

Craig Kerstiens

"Like, am I a developer?" Which was-

15:27

Aaron Francis

You got, you got them hooked. You gave them a taste. There's no turning back now.

15:31

Craig Kerstiens

It was, it was fascinating, and I, I love that. I mean, the other thing I always, you know, started to do after that too was, like, make sure... Uh, do you have a psqlrc yourself set up or not?

15:41

Aaron Francis

No. I saw yours the other day and bookmarked it, but no.

15:45

Craig Kerstiens

Like, how many times have you written a query and then gone back like six months later like, "What did I, what was that query? Where is it at?"

15:52

Aaron Francis

Mm-hmm.

15:52

Craig Kerstiens

So you can easily set it up to save the history of every query you run with the database name that you're connected to.

15:58

Aaron Francis

Cool.

15:58

Craig Kerstiens

So it's like, you know, core DB versus, like, marketing DB, right?

16:04

Aaron Francis

Mm-hmm.

16:04

Craig Kerstiens

Like, I don't wanna mix and match those, and, like, sorting through every his- query I've ever run. But it's like, once I'm connected to this DB, it's a pretty common set of queries that I run.

16:12

Aaron Francis

Mm-hmm.

16:12

Craig Kerstiens

So super handy to, like, auto-save all of your query history.

16:17

Aaron Francis

Yeah. Cool. Yeah. I mean, that makes perfect sense. So if you found, you found the perfect tool, and every, everyone else was like, "Ah, you know, we're either too big or we're too small." But the people that were right there, they loved it. So after, after Heroku, uh, I, I wanna get to this, this tweet. I, I'll give a tease of the tweet, but I have one question before that.

16:38

So here's, here's the inciting incident. So I follow you on Twitter, obviously, and the tweet was, uh, a V- you were talking to a VC, and he says, uh, "Way back when we bet on MySQL, you said, 'Not crazy for that time.'" And then the VC says, "Postgres really came out of nowhere in the last few years. Any thoughts on how that happened?" And you said, "How much time you got?" And so that is when I was like, I've got, uh, all the time in the world.

17:04

So that's what I wanna get to. But before we do that, um, you went to work for Citus, is that right?

17:09

Craig Kerstiens

Yep. Yep.

17:10

Aaron Francis

So explain to me, uh, so as you know, but others may not, I'm coming out of predominantly a MySQL world, uh, historically. Explain to me, uh, similarities and differences to the extent that you know them between Citus and Vitess.

17:28

Craig Kerstiens

Um, I'd, I'd poke at it right away, because, like, Citus has, uh, constraints and foreign keys, um, which, uh, I, I think Vitess has kinda some, uh, sorta some support now.

17:41

Aaron Francis

Yeah.

17:41

Craig Kerstiens

Um, I, I did love the blog post saying, "This is not possible in distributed database." And I was just like, "Um, um, over here."

17:47

Aaron Francis

Mm-hmm.

17:47

Craig Kerstiens

"Uh, we've had this for a few years."

17:49

Aaron Francis

Mm-hmm.

17:49

Craig Kerstiens

Um, uh-

17:52

Aaron Francis

No comment. Yeah

17:52

Craig Kerstiens

... Citus generally is, is... was originally focused on way more, like, the HTAP space. Like high-

18:00

Aaron Francis

Okay

18:00

Craig Kerstiens

... transactional processing. Like-

18:01

Aaron Francis

Okay

18:02

Craig Kerstiens

... in just a lot of OLTP stuff, but then we wanna do really fast, you know, counts and aggregations, like pan out and, like, crazy parallelism.

18:10

Aaron Francis

Okay.

18:10

Craig Kerstiens

Citus, um, we stumbled into this idea of multi-tenant apps, right?

18:15

Aaron Francis

Mm-hmm.

18:15

Craig Kerstiens

Um, Vitess does different things with MySQL on how it shards. Like, I believe it's a little more magical, where Citus follows, I think, more of a- ... Postgres view where, like, you're very explicit with how you shard with Citus.

18:29

Aaron Francis

Okay.

18:29

Craig Kerstiens

You say, "This is my shard key," and you wanna group, like, the right thing under the shard key, right? So if you're salesforce.com-

18:38

Aaron Francis

Pause there for two seconds. Give us a one or two sentence overview of what Citus, uh, s- like, on the 10-

18:45

Craig Kerstiens

Yeah

18:45

Aaron Francis

... what does Citus do?

18:47

Craig Kerstiens

Citus is an extension that turns Postgres into a sharded, distributed, horizontally scalable database.

18:54

Aaron Francis

Okay. So you've discovered this tenancy model, and you were about to say something about Salesforce. Carry on.

19:00

Craig Kerstiens

So, um, and, and so let's see. How quickly can I give the full primer? Um- So for those that haven't sharded, right, like a shard is a, you know, I believe it comes from Ultima Online, I think. Um-

19:15

Aaron Francis

I think that it comes from some game. I do think that's right.

19:19

Craig Kerstiens

Yeah. Um, is a way of dividing up your database, right?

19:22

Aaron Francis

Mm-hmm.

19:22

Craig Kerstiens

You've got, like, database one, database two, database three. Like, poor man sharding that I've seen in a bunch of apps is, you know, hey, users one through 100 go in this database.

19:33

Aaron Francis

Mm-hmm.

19:33

Craig Kerstiens

Users 101 through 200 go in this database. Um, within sharding you've got, like, nodes, like physical nodes, like node one, two, three, four, and then you've got shards. When you're sharding, you wanna have more shards than you have nodes.

19:47

Aaron Francis

Okay.

19:47

Craig Kerstiens

So if I've got, like, four nodes, I maybe wanna create 32 shards up front. The reason is, it's easy to go and move a shard after the fact. It's not easier to split a shard up.

19:59

Aaron Francis

Okay.

19:59

Craig Kerstiens

So if I had, like, a, you know, table one, table five, table nine live on node one inside my-

20:08

Aaron Francis

Mm-hmm

20:08

Craig Kerstiens

... Postgres instance, and if I'm salesforce.com, instead of going users one through 100, which are gonna be my oldest, biggest, most valuable as time goes on all packed in together-

20:21

Aaron Francis

Right

20:21

Craig Kerstiens

... I'm gonna say, well, you know, customer one going on shard one on node one. Customer two going on shard two, uh, or sorry, node two, shard two, right?

20:34

Aaron Francis

Mm-hmm.

20:34

Craig Kerstiens

Customer three, uh, so forth, so on, right? And I get back here to customer five going back on node one, but then I can later go and say, oh, I wanna move customer five out to their own node.

20:45

Aaron Francis

Hmm.

20:45

Craig Kerstiens

So I can create a new Postgres instance, and then-

20:48

Aaron Francis

Mm-hmm

20:48

Craig Kerstiens

... with, you know, logical replication or... We had this way, way, way back, I think I have a blog post maybe 10, maybe 12 years ago of, uh, the, I think the company was ThinkThrough Math, a big Heroku customer-

21:01

Aaron Francis

Mm

21:01

Craig Kerstiens

... that used Heroku followers and basically spin up, spin up a follower, promoted one, and then you're gonna go in and delete half the data from one, and then delete half the data from the old primary. And now you just split it up, right? It works pretty well. Um-

21:14

Aaron Francis

That's pretty good

21:15

Craig Kerstiens

... so Citus, if you have something like a customer ID, right?

21:19

Aaron Francis

Mm-hmm.

21:19

Craig Kerstiens

Well, you're not joining across databases, and that's where you get nice foreign key constraints and all that because, like-

21:25

Aaron Francis

Mm-hmm

21:25

Craig Kerstiens

... customer ID goes on every single table. Um, Citus is, um, I was actually... I don't know why I was thinking about this in the, the shower this morning. I think, you know, I was talking with someone about Citus yesterday. And-

21:39

Aaron Francis

Oh, we, we sh- we share an affliction. I have that same problem, so you're not alone there.

21:44

Craig Kerstiens

It, it's a weird analogy, but Citus is kind of like, like chemotherapy. Like-

21:51

Aaron Francis

Okay

21:51

Craig Kerstiens

... if, if you have cancer and you catch it early, pretty effective. It works, right?

21:58

Aaron Francis

Sure.

21:58

Craig Kerstiens

You're just now building an app. Um, and if you have cancer, right? If you don't have cancer, you're not going in there being like, "Hey, I'm about to go out and get sunburnt. Can I go ahead and get some, like, chemo, like, preemptively?"

22:09

Aaron Francis

Okay. Fair enough. Good, good so far.

22:13

Craig Kerstiens

You catch it late stage, right, you're a, you're a 10 terabyte database. You have, you know, crazy weird joins.

22:20

Aaron Francis

Yeah.

22:21

Craig Kerstiens

You don't have your customer ID on every table.

22:23

Aaron Francis

Mm-hmm.

22:23

Craig Kerstiens

Um, you've got complicated, weird queries that don't join on customer ID. Like, you know, maybe the chemo's gonna work, but if it's late, late stage cancer, you're gonna y- you're going through a lot of pain, uh, for an unclear outcome, right?

22:40

Aaron Francis

So if you end up, if you end up at a point where sharding makes sense but your data model is not already tuned for that, you're gonna be-

22:51

Craig Kerstiens

And query workload.

22:52

Aaron Francis

Okay. And query workload. You're gonna be kind of up a creek, and so at some point before that, you gotta start doing the legwork to clean up your data model and queries such that then you can introduce sharding without, uh, without the pain.

23:09

Craig Kerstiens

Yep. And Citus has come a long way to kind of test if your app's ready, right?

23:13

Aaron Francis

Mm-hmm.

23:13

Craig Kerstiens

They've got a mode where it's like you can warrant on queries and that sort of... Like-

23:17

Aaron Francis

Oh, that's cool

23:17

Craig Kerstiens

... it's gotten better and better on that. Um, but I would say on average, people spent, when they showed up with a big, mature app, it was four to six months to kind of-

23:27

Aaron Francis

Geez

23:27

Craig Kerstiens

... a few engineers, like, re-architecting their app-

23:30

Aaron Francis

Right

23:30

Craig Kerstiens

... to kind of, you know, their data model. Um, and you've got a... At that point, you've already got a big database. The idea of, like, well, we're gonna go and backfill our customer ID on every table that, you know, once you've, you've done rails new, that's pretty quick and easy-

23:44

Aaron Francis

Mm-hmm

23:44

Craig Kerstiens

... on a rails app with 150 models. Not so quick and easy to, like, not impact production.

23:50

Aaron Francis

Yeah. Okay. That makes sense. All right. I was wondering where that analogy was gonna go, but I think it works, so that makes sense. I'll, I'll accept that. So let's talk about, uh... We, we can, we can close out by talking about Crunchy 'cause y'all have a lot of interesting stuff going on over there, but here's what I wanna ask you. You're telling this VC... So, so this VC, I don't know if it's real or made up, but it's a great story.

24:12

The VC's saying, "Where did Postgres come from? Seems like it came out of nowhere." Uh, you seem to have a lot of opinions on that, which I wanna hear. My perspective is I grew up in a MySQL household. Um, my dad was actually SQL Server, but I was a PHP boy. Still am. And so we were always, you know, we were always LAMP stack, MAMP stack, uh, you know, MySQL, PHP.

24:35

So that was kind of like my, my, uh, long history. And then- It does, in my opinion, seem like Postgres kind of came out of nowhere. Um, in our world, uh, it does feel like Laravel, which is a PHP framework, has always kind of been MySQL, and Rails has always kind of been Postgres. But I will say, uh, Laravel Cloud is launching, and the first database flavor that they're going with is Postgres.

25:00

Um, and so it does kind of feel like the tides are turning a little bit, and I'm sure, um, that you follow Mark Callaghan on Twitter, and every... And I think he's, like, uh... I think he is a pure and noble saint. He seems totally driven by data only, and he seems very thorough. Um, so I don't think he has a dog in any fight, but every time he tweets about the new MySQL releases, it's like, "Hey, another regression.

25:27

Hey, another performance regression. Hey..." And it's like, what is going on over there? And so from kind of, like, my perspective, that is what I'm seeing, um, in terms of, like, the battle or the war or whatever. So sounds like me and this either real or fictional VC are on the same page. What is your take on why Postgres came out of nowhere, you know, whatever, 20 years later?

25:48

But what, what's your opinion on that?

25:51

Craig Kerstiens

Yeah. I think there, there's a few things in there. And so I'll, I'll back up and cover a few things, right?

25:55

Aaron Francis

Please.

25:55

Craig Kerstiens

And so before Heroku, I... Like, Heroku wasn't my first foray into Postgres. So I was at a company, um, back in '06, '07, '08, Truviso, that extended Postgres to be a streaming database to essentially do MapReduce on data as it came in.

26:15

Aaron Francis

Hmm.

26:16

Craig Kerstiens

So, um, this was back in the, like, in the data world, like, the CEP, complex event processing, space. Postgres wasn't new to the database world. Like-

26:28

Aaron Francis

Okay

26:28

Craig Kerstiens

... Postgres, right, is post-Ingres. Like, databases follow one of two lineages, right? And Ingress is half of the databases out there. Um, I forget, I don't think SQL... Maybe, actually, no, SQL Server is not. But if you look, like, DB2, um, Sybase. But if you look, like, um, Redshift, right?

26:50

Aaron Francis

Mm-hmm.

26:50

Craig Kerstiens

Redshift was Paraccel. Amazon licensed Paraccel. Paraccel ran out of money, and they hired all of the Paraccel engineers, right? So, like, Amazon never acquired Paraccel, but it was purely Paraccel technology, right?

27:07

Aaron Francis

Hmm.

27:07

Craig Kerstiens

Um, if you look back at Greenplum, Aster Data, Netezza, all of these data warehousing products-

27:13

Aaron Francis

I've never heard of any of these things. You, you claim you're not... You're some, like, application developer. You don't do a lot of b- Um, uh, you're the expert. I've never heard of any of these things in my life.

27:23

Craig Kerstiens

So, like, Postgres has been around for a long time. Like, because of its permissive license-

27:29

Aaron Francis

Okay

27:29

Craig Kerstiens

... because of its amazing code quality, like, if you're, like, hacking databases as a PhD student, you start with Postgres, and then you modify it.

27:38

Aaron Francis

Interesting.

27:39

Craig Kerstiens

If you're building a data warehouse 25 years ago, 20 years ago, 15 years ago, what you would do with Postgres is you would fork it, 'cause that's just what you did back then, right? Uh, it's super permissive license. It's fine to do. Uh, fork it, turn it into an MPP database, like, massively parallel processing-

27:59

Aaron Francis

Mm-hmm

27:59

Craig Kerstiens

... and then start building out, you know, your data warehouse. And three or four years later, you, you start to have something that just about works. Like, building a data warehouse is a long, slow process. So fast-forward a little bit, right, and Postgres, like, maintaining and keeping current, like, Redshift is kind of stuck on Postgres.

28:22

I believe it's 8.2 is the version.

28:24

Aaron Francis

Oh.

28:24

Craig Kerstiens

Now, there's hints of things that have come in, like window functions in Postgres arrived, I believe, in Postgres 8.4. Uh, when I first found window functions, I was just like, man, I can do all of this in SQL and not-

28:37

Aaron Francis

Mm-hmm

28:37

Craig Kerstiens

... have to go back and forth through my programming? Like-

28:39

Aaron Francis

Yeah

28:39

Craig Kerstiens

... this is, this is an interesting real database. So I give some of that context of, like, if you look way back at product companies and, like, acquisition, like, real, legit data warehouses that were... now kind of resemble Postgres, but, like, they really truly started at Postgres.

28:54

Aaron Francis

Hmm.

28:55

Craig Kerstiens

If you talk to others today, like a Yugabyte or Cockroach, they're like, "Oh, we're Postgres," but it's like we started with the parser or, like, the wire protocol.

29:03

Aaron Francis

Mm-hmm.

29:04

Craig Kerstiens

That's not starting with the Postgres code base. You started with a completely different code base.

29:08

Aaron Francis

Hmm.

29:08

Craig Kerstiens

Back then, you actually started with Postgres. Now, at Truviso, when Postgres, like, when we went from Postgres 8.4 to 9.0, it took us, like, six months to go from one version to, to just rebase all of that. So fast-forward a little bit, and you've got extensions, right, which make it even more fascinating for Postgres to, to build on.

29:31

Um, maybe I'll come back to that piece. But, uh, so I showed up at Heroku, and I was over here, like, launching Python. Like, I, I ran product for our payments and billing group. Um, did some stuff with the add-ons marketplace. And I'm over here, and here's all these Rails developers, like, throwing just, like, tech stuff into a field, and like, "Oh, we'll, we'll convert timestamps," but back and forth.

29:55

I'm like, "Why aren't you using timestamp TZ? Why aren't you using range types? Why aren't you..." I'm like, like, Heroku is supposed to be really, really good Rails developers, right?

30:05

Aaron Francis

Mm-hmm.

30:05

Craig Kerstiens

Like, really savvy. I'm like, "Guys, why are you treating..." You know, I think DHH once famously said, like, "The database is just a dumb hash in the sky." I'm like, "No." It's like- ... this is, this is the source of truth. Like, how are you-

30:19

Aaron Francis

Oh, man.

30:21

Craig Kerstiens

I knew the, the Python community and the Django community really well, and they're like, "We're gonna treat all databases the same." And I'm like, "You're, you're kidding me." Like-

30:29

Aaron Francis

Mm-hmm

30:30

Craig Kerstiens

... at one point, SQLite listed null as a data type. And I'm like-

30:33

Aaron Francis

Mm-hmm

30:34

Craig Kerstiens

... I'm very confused by this. I think it was just a misconfusion in the docs, but I'm just like, you've got five data types? And you know SQLite well, right?

30:40

Aaron Francis

Mm-hmm.

30:41

Craig Kerstiens

Like, five data types, or is there more now?

30:44

Aaron Francis

Oh, no. It's still that few. Yeah.

30:48

Craig Kerstiens

A- and if you've ever built like a, um-

30:51

Aaron Francis

Mm-hmm

30:51

Craig Kerstiens

... a scheduling app, right? If you're building like a, a scheduling app and calendaring app, you don't want overlapping, you know, like, "Hey, we want 30, uh, people in a class, and we don't wanna, you know, overflow that." And like, it's college registration time, and everyone wants not to have the 8:00 AM class, right?

31:08

Aaron Francis

Mm-hmm.

31:08

Craig Kerstiens

So they flood to the noon class. Like, don't you want a proper constraint in the database to ensure that doesn't happen and you unwind it? And, like, Postgres has constraint for that, right?

31:19

Aaron Francis

Mm-hmm.

31:19

Craig Kerstiens

Like, why aren't you using these things? Every developer I've ever met that says, "No, no, I, I enforce constraints at the application layer." When I'm like, "Cool, can I have five minutes with your database and just run a few queries and see what happens?" Um, every time they're like, "Huh. Uh, well, can you tell me which of those is correct?" I'm like, "Why, why won't you believe me when I, like, find duplicate or incorrect data?"

31:42

Aaron Francis

Mm-hmm.

31:42

Craig Kerstiens

So, so at Heroku, I was just evangelizing Postgres internally. I'm like, you know, "Hey, dumb Rails developers, you should really learn how to use a database. Here's all the amazing stuff it can do," right? And I accidentally got recruited over there. But I think Heroku had a massive piece, right? Like, every Rails developer got a Postgres database.

32:03

Aaron Francis

Mm-hmm.

32:03

Craig Kerstiens

And we made it easy to use, and we started pushing on it becoming great for Rails developers. Like, Rails you can pass in like a, a DSN, like the Postgres UR- like Postgres colon slash, slash.

32:16

Aaron Francis

Mm-hmm.

32:16

Craig Kerstiens

Like, we worked to get that into a standard within Postgres, like that the libpq driver would parse that. So it's the Postgres-

32:24

Aaron Francis

Mm

32:24

Craig Kerstiens

... driver that's parsing it, and now you can just pass that in. You don't have to pa- break out username, password, hostname, all that, which is just ugly and painful. And so, worked with like the Rails community, and then pushed on that in the Python community. Like, you should just accept-

32:40

Aaron Francis

Mm

32:40

Craig Kerstiens

... a Postgres connection string as, as the thing to connect. Um, we really just worked to make it amazing, both with the language communities and within the, the, you know, Postgres itself, and try to get them to meet both ways. Um-

32:55

Aaron Francis

So pause there. Was Heroku supporting Postgres only? Was that a big reason-

33:03

Craig Kerstiens

That was it

33:03

Aaron Francis

... the, that it-

33:04

Craig Kerstiens

Yeah

33:04

Aaron Francis

... was adopted in Rails?

33:05

Craig Kerstiens

That was it. Yeah. It was p- Heroku was synonymous with Rails, and Heroku, it was funny because Heroku-

33:13

Aaron Francis

Huh

33:13

Craig Kerstiens

... we had one guy on the ops team that's like, "Hey, MySQL versus Postgres, which should we use?" Um, this is, this person was not a major contributor to anything else at Heroku except-

33:27

Aaron Francis

Mm

33:27

Craig Kerstiens

... he's like, "Hmm. In all of the, the, like, Linux, Unix forums I'm on, like, Postgres seems to have a really good security track record and be safe for your data. And I think if we're running a database, it should not lose your data." It's like, okay.

33:39

Aaron Francis

Mm.

33:39

Craig Kerstiens

That's a pretty... There was a little more thought than that behind it, but not massively. Like, it was a little bit of like, "This seems like it's got a good track record. Let's go with it." Um-

33:50

Aaron Francis

That is-

33:51

Craig Kerstiens

You're-

33:51

Aaron Francis

... wild, because I so closely associate Rails, the Rails community with Postgres, and Rails with Heroku, and Heroku with Postgres. But I didn't know, you know, chicken or egg. I didn't realize that, uh, Heroku having Postgres only and being the spot for Rails is how Rails and Postgres ended up thick as thieves.

34:12

I did not know that.

34:14

Craig Kerstiens

Yeah. I mean, I haven't... I, I wish I still had it. I don't think I saved it from the work email. Like, um, we have an email from Amazon years later that Amazon never wanted to sort port- support Postgres. Like, like if, if MySQL RDS had existed, we probably would just scrap that. Like, Heroku Postgres, like we had all these Rails developers asking for a database and thought, "How hard could this be?"

34:36

Aaron Francis

Hmm.

34:37

Craig Kerstiens

And like, if, if RDS was there, we probably would've just said like, "All right, let's wrap this," or, "Let's use it."

34:41

Aaron Francis

Mm-hmm.

34:41

Craig Kerstiens

It didn't exist, so we built Heroku Postgres. Amazon, about the same time or shortly after, happened to come out with MySQL RDS, and then years later, the GM of that group was like, "We got tired of all the complaints about us not supporting Postgres. Like, you're the reason we went and supported Postgres on RDS." Like, there was no plans for that. They were all in on MySQL, and they got tired of the complaints about like, "We want this Heroku thing over here.

35:05

We like Postgres. Can you support it? Heroku supports it. Why don't you?" Um, that was a... I mean, you can thank Heroku a lot. I think there's a few pieces, but, like, Heroku definitely had some track record behind it.

35:19

Aaron Francis

Hmm. That, this is great lore. I freaking love this. Um, okay. So you touched for a second on, um, you touched for a second on the extensions.

35:32

Craig Kerstiens

Mm-hmm.

35:32

Aaron Francis

My, uh, point of view/opinion is that the... It's kinda like, this is not derogatory, Postgres is kinda like React. You, you cannot leave because the community, the ecosystem is so incredibly strong. And you know, I, I think it's like a meme on Twitter at this point, and it's just like, "Just use Postgres for that.

35:55

Oh, you have a problem? Just use Postgres for that." Because truly, it does seem like there is an extension for everything. So how did that... Like, what was the inciting incident, i- incident to, to allow that ecosystem to flourish?

36:11

Craig Kerstiens

Yeah. So I mean, it's been there for a while, and if you read back to like, uh, Stonebraker's original thesis, and a, a big idea was extensibility. It wasn't quite, I think, the extension framework it, it exists today.

36:22

Aaron Francis

Mm-hmm.

36:23

Craig Kerstiens

Um, I tw- twice over, Colin, or just once? Like, Dimitri Fontaine, like, extensions are always there, but not easy-

36:30

Aaron Francis

Hmm

36:30

Craig Kerstiens

... as easy to use. He went and added the-

36:33

Aaron Francis

I think I have that right here.

36:34

Craig Kerstiens

Oh, yeah.

36:34

Aaron Francis

Dimitri Fontaine. It's a good one.

36:36

Craig Kerstiens

So-

36:37

Aaron Francis

I got lots of notes out of that one.

36:38

Craig Kerstiens

Yeah. Uh, oh, man. I need to go have some wine with Dimitri. He's, he's very French, so, um-

36:45

Aaron Francis

He's a good writer

36:46

Craig Kerstiens

... uh, yeah. Um, I can, I can tell you off camera t- plenty of stories about Dimitri, too.

36:51

Aaron Francis

Sorry.

36:52

Craig Kerstiens

Um, that are, that are not in the appendix of the book. Um- Yeah. So he wrote the, the Create Extension command, right?

37:00

Aaron Francis

Mm-hmm.

37:00

Craig Kerstiens

So extensions were there, but they had to be loaded weird and weren't as user-friendly. Um, we, we actually contracted out with him at one point to, at Heroku, we had the idea of building an extension marketplace for Postgres.

37:12

Aaron Francis

Oh, that's interesting.

37:14

Craig Kerstiens

And yeah. And so, right, this is, I mean, this is 12 years ago we're thinking about this. So you see people kind of trying this now. Uh, he was like, "Well, can I, can I build the, like, you know, the server side of it in anything?" And at Heroku at the time, we had everything.

37:27

Aaron Francis

Mm-hmm.

37:28

Craig Kerstiens

We had Go, we had Java. I, I don't know if it was Java or Scala in the stack. We had Python, we had Ruby. Like, we were, we were fully polyglot everything. It was, it got cleaned up later and standardized, but we were everything. And so we're like, "Sure. Write it in whatever you want." Um, learned my lesson. Uh, he came back with this all written in Common Lisp.

37:51

And, uh, yeah, yeah. We, uh- That never made it to production. Um-

37:58

Aaron Francis

What a legend.

38:01

Craig Kerstiens

It was, uh... That's still, that's in my, like, the back pocket. Like, one day I'm gonna ship an extension marketplace, but, like, that, that framework of Create Extension, right? You still gotta build them and have them on the server.

38:12

Aaron Francis

Mm-hmm.

38:12

Craig Kerstiens

But I would say even before that, Postgres was more and more of a data platform. Like, you had things like full text search, right? You, you started to have PostGIS, which was an extension, but, like, it shipped right alongside, right?

38:26

Aaron Francis

Mm-hmm.

38:26

Craig Kerstiens

You had things like hstore, um, JSONB. Like-

38:31

Aaron Francis

Hm

38:31

Craig Kerstiens

... we almost wound up with something very different, where we had, like, a completely different approach, which, which Jstore, like, it was a different competing thing at the time. Man, Postgres developers are fascinating. Like, I think now they're, they're more tuned into general web world, but at the time, like, uh, like, one's like, "What, what is JSON?

38:54

Why would I care?" You know, like, "I, I built website once. It was a good website. It was HTML." Like, this, and this wasn't 20 years ago, this was like 10 years ago.

39:03

Aaron Francis

Mm-hmm.

39:03

Craig Kerstiens

Right? And we're like, "Hang on. No, no, no. Here's why JSON matters in the world."

39:07

Aaron Francis

Mm-hmm.

39:08

Craig Kerstiens

Um, and so when it got JSON, like the JSON support in Postgres, well, not 9.2. 9.2 was cheating, right? That was JSON into a text field. That was validation on it. JSONB, um, which my, my colleague Will says stands for better. Um-

39:25

Aaron Francis

We do love Will.

39:26

Craig Kerstiens

He, it's so good. Um, oh, other Will. You need to know other Will.

39:31

Aaron Francis

Oh. Oh, okay. I don't know other Will. I'm sure he's great. I'm sure he's great. I love main Will, primary Will.

39:37

Craig Kerstiens

Uh, shout out to other Will, um, who is, uh, a webmaster. Um, you can visit his website, Bit Vision. Um, it's an amazing website. If you're there, make sure to sign the guest book.

39:48

Aaron Francis

Not a lot of webmasters around anymore. I think, I think him and maybe Justin Jackson are the only two webmasters left. Um-

39:54

Craig Kerstiens

He's, he's been our webmaster. He was webmaster at Heroku, and at Citus, and here at Crunchy too, so.

40:00

Aaron Francis

Okay. We'll call him Webmaster Will, 'cause other Will's, uh, it's, uh, it's a little derogatory. So Webmaster Will and Will King. So, uh, JSONB-

40:08

Craig Kerstiens

But, uh-

40:09

Aaron Francis

... is JSON better according to Webmaster Will.

40:11

Craig Kerstiens

Yeah. So I mean, if you look at it, like the idea of like, oh, you need a NoSQL database. Oh, you need full text search.

40:16

Aaron Francis

Mm-hmm.

40:16

Craig Kerstiens

Oh, you need... Like, Postgres has been a platform for a while. I think I, like, started saying that in something like 2012, but like, it's a data platform. But then you enter extensions, right? Which I, I don't know of any other database that... Well, now DuckDB has extensions, right? But, like, outside of that, I don't know of another one, um, and I think you see, you know, I caught up with Hanas a month or two ago.

40:38

Like, a lot of, like, DuckDB stuff is modeled after Postgres.

40:42

Aaron Francis

Mm-hmm.

40:42

Craig Kerstiens

It's like, man, there's some good stuff in here. I think they're doing a lot on developer experience and improving that. But, you know, hey, Postgres has had this for a while, it's just not been accessible and developer friendly.

40:52

Aaron Francis

Mm-hmm.

40:52

Craig Kerstiens

And so low level hooks that can turn Postgres into whatever. One person joked and wrote a Mongo, uh, FD- Mongo compatibility FDW, which just wrote your data to dev null. Um- Because you can do that. Um, you, like, you can change where the data goes-

41:11

Aaron Francis

You can do that

41:11

Craig Kerstiens

... and whether it gets synced-

41:12

Aaron Francis

Yeah

41:12

Craig Kerstiens

... or, you know, the query plan or all that sort of thing. So I, I think as much as Postgres continues to move forward and be steady, and-

41:19

Aaron Francis

Uh-huh

41:19

Craig Kerstiens

... advance bit by bit by bit, it's, you know, the releases are getting more and more boring, 'cause it's like, well, we're faster.

41:26

Aaron Francis

It's good.

41:26

Craig Kerstiens

We're still safe for your data.

41:28

Aaron Francis

Yes.

41:28

Craig Kerstiens

And if something gets really, really standardized and stops changing, we'll add it. Otherwise, you've got this huge extension ecosystem that, like, go do crazy stuff until it kind of becomes a standard and that sort of thing.

41:38

Aaron Francis

So is that, is that how, informally, is, is that how you think it works?

41:42

Craig Kerstiens

Mm-hmm.

41:42

Aaron Francis

That the extensions are proving grounds, and once something, once something reaches some sort of critical mass or whatever, the team kind of, like, looks at rolling it in? Is that how it's worked historically?

41:55

Craig Kerstiens

Sor- sort of with some functionality. Like, there was some, some extension stuff around, like, JSON path-

42:01

Aaron Francis

Mm-hmm

42:01

Craig Kerstiens

... that then became first class operators, right? Um, bits and pieces. Some stuff you'll never find in core. I doubt you find Citus, like, sharded distributed stuff in core.

42:13

Aaron Francis

Mm-hmm.

42:13

Craig Kerstiens

Um, I doubt you'd find Columnar or Time Series in core. So I think there will always be a world for extensions. Um, like Postgres itself ships with, I wanna say it's 17 extensions in Contrib.

42:26

Aaron Francis

Mm.

42:26

Craig Kerstiens

Like, it already ships with some. Um, UUID was one for a while, right? Now I think it's gonna get-

42:32

Aaron Francis

Oh, there you go

42:32

Craig Kerstiens

... a more standard UUID type.

42:35

Aaron Francis

Mm-hmm.

42:35

Craig Kerstiens

Um, so as these things standardize, I don't think Contrib's gonna grow. It's, it was an interesting idea. I think it's five years away, but in five years, I think we kind of figure out a full on marketplace for extensions. Now, how that works within the community versus vendors versus other is-

42:52

Aaron Francis

Mm-hmm

42:52

Craig Kerstiens

... is interesting, but I think we get there eventually.

42:55

Aaron Francis

That's super interesting. The idea of an extension marketplace for a, a database is very novel to me. I'm sure many have thought of it, but I have never thought of that. So how does, um- How does Postgres win the hearts and minds of so many people? Because what I feel like is, I, I do feel like the Postgres diehards are diehard.

43:19

Um, and so we get a little bit of understanding from the Heroku story about how it was, like, uh, introduced and spread into perhaps the Rails community and then further, um, 'cause, you know, Heroku supports all kinds of languages. But what is it these days that makes the advocates advocate? Is it the lack of ownership by Oracle?

43:42

Is it the extensions? Is it the stability? Like, what, what are you seeing in your line of work where it's like, these, this is why people love it?

43:51

Craig Kerstiens

You know, on the advocate side, it's probably a mix of all those, right? I think, but, I mean, to be super honest, like, I, I think developers were, were bad at, like, s- rational decision-making. Like-

44:05

Aaron Francis

Yes

44:05

Craig Kerstiens

... we're like, "Rails is so much better than Python and Django."

44:10

Aaron Francis

Mm-hmm.

44:10

Craig Kerstiens

"And here's why." And I'm like, Ruby and Python are the same language.

44:14

Aaron Francis

Yeah.

44:15

Craig Kerstiens

They're... Like, yes, there are differences, and I'm, now I'm gonna get roasted in the comments. It's gonna be fun.

44:20

Aaron Francis

Yeah, you said it, not me.

44:20

Craig Kerstiens

But-

44:20

Aaron Francis

Don't come at me, guys.

44:23

Craig Kerstiens

I, I was at a conference, like, uh, it was about 10 years ago and, and speaking at the speaker's dinner, and someone was commenting, like, "Yeah, we're just all like, you know, uh, we just cargo cult and jump on the bandwagon, and we, we defend our things like we were so thought out and formed our own opinions." And it's like, you know, someone else just said it and I followed along. Like, for example, like Postgres.

44:44

Like, as a Django developer, I know I use Postgres, but I can't tell you why.

44:47

Aaron Francis

Mm-hmm.

44:47

Craig Kerstiens

And half the table got quiet 'cause I was down at the end, right? And I was just like, uh, concurrent index cr- creation, transactional DDL, window function. I was just like, da, da, da, da, da, da, da.

44:58

Aaron Francis

Mm-hmm.

44:58

Craig Kerstiens

And then it was just like, "Oh. Oh, that's really cool. It is a really good database," right? So I think when you find someone that digs in, right?

45:05

Aaron Francis

Mm-hmm.

45:05

Craig Kerstiens

That prints out the manual that's, is it 2,000 pages, and reads it, you know, um, have you read the full manual yet?

45:12

Aaron Francis

I've only printed 500 pages. I have it, I have it right here, but I did not print, uh, you know, I didn't print a lot of the stuff. It's a lot of docs, man.

45:22

Craig Kerstiens

In, in the early days, several of the Heroku team members all printed it out and read it cover to cover as we were... We're like, "We need to know this as good as anyone if we're running a database as a service."

45:31

Aaron Francis

Thank you.

45:31

Craig Kerstiens

So-

45:32

Aaron Francis

Finally. Finally, somebody that agrees with me. I love that.

45:36

Craig Kerstiens

I mean, I said they did. I didn't, I was not in support of that.

45:38

Aaron Francis

Well-

45:38

Craig Kerstiens

I was like, there's-

45:39

Aaron Francis

... pass, pass along my regards to your former, uh, coworkers and tell them that I think they're very, very smart. Yes, I think that's a great idea, especially if you're gonna be running it as a service. I'm just trying to teach it. So I printed out and read it, but, uh, yeah, like-minded folks.

45:56

Craig Kerstiens

But yeah, it's, it is a good database, right? I, I do think, you know, Oracle and what they've done with MySQL doesn't hurt it, right? I do think an incredibly permissive license that you can take it and go and build on top of it doesn't hurt it. Um, I think as you look at frameworks that now take advantage of the features that didn't for a long time, right?

46:15

Aaron Francis

Mm-hmm.

46:15

Craig Kerstiens

Every database was just a dumb database with texts, and timestamps, and-

46:20

Aaron Francis

Mm-hmm

46:20

Craig Kerstiens

... you know, integers and decimals, and why do we need more data types, right? Like, because you may wanna migrate from at one point to another. Like, have you ever migrated a database? Like, it, like, if you have that philosophy about your database, why don't you have your phil- uh, philosophy about your app code? Like-

46:36

Aaron Francis

Mm-hmm

46:36

Craig Kerstiens

... we can't use anything unique to Laravel because it might not exist in Rails.

46:42

Aaron Francis

Yeah.

46:42

Craig Kerstiens

Because we might need to migrate to Rails. Like, I've never heard that argument made.

46:45

Aaron Francis

Nonsense. Yeah.

46:47

Craig Kerstiens

But I hear it made about a database all the time. We can't use unique MySQL features because we might mi- migrate to Postgres, or we can't use unique... Well, why, then make the same argument to your framework and to your, your, you know, primary programming language.

47:00

Aaron Francis

Yeah.

47:00

Craig Kerstiens

And so I do think that the real diehards appreciate, you know, some things like, like transactional DDL is still so nice. Like, you run a migration and it fails midway, what happens? And it's like, that doesn't happen every day, but man, when that does happen, it's not a fun time.

47:18

Aaron Francis

No.

47:18

Craig Kerstiens

And so Postgres being safe and reliable, like, as a data person, I, it's near and dear to my heart. Now, I think the rest of the programming world, like we, we do cargo cult, and because it's the cool thing and you're not wrong for choosing Postgres-

47:33

Aaron Francis

Mm-hmm

47:33

Craig Kerstiens

... that's where it gets the bulk of its love. But the diehards I think have real reasons, like it's, it's licensing, no central owner. Um, to me, it's not just open source, it's no central owner. That's-

47:44

Aaron Francis

Mm-hmm

47:44

Craig Kerstiens

... like, find another thing outside of maybe the Linux kernel that is run in a similar way.

47:53

Aaron Francis

Yeah, that's interesting. The no central owner. Yeah. I guess SQLite's still maintained, still super controlled by DRH and I think his two friends, um, which is why Libsql was forked, 'cause they don't allow-

48:11

Craig Kerstiens

Right

48:11

Aaron Francis

... pull requests. Laravel has a corporation. Rails has a foundation, I guess. Um-

48:17

Craig Kerstiens

And even then-

48:17

Aaron Francis

So, like-

48:18

Craig Kerstiens

... with the foundation-

48:19

Aaron Francis

... pretty DRH heavy.

48:20

Craig Kerstiens

Yeah, exactly. It's, I mean, even in the, like the, I don't know if it's in the core bylaws or not, like no one company can comprise more than 50% of the core, uh, board of Postgres. I mean, you look at the distribution-

48:32

Aaron Francis

Oh, that's cool

48:33

Craig Kerstiens

... of commits from like, um... And it's, it's an oddity. People are like, "Oh, the core team, that's the people that commit stuff." It's like, no, core is more of like a steering body of seven or nine people that controls the trademark, and defends it, and-

48:45

Aaron Francis

Hmm

48:45

Craig Kerstiens

... you know, code of conduct, and just making sure things are okay, you know? Committers are the ones that do all the work, right?

48:51

Aaron Francis

Mm-hmm.

48:51

Craig Kerstiens

And that's 50, 60 people, and if you look at that, the, the distribution of companies, um, I don't know that any company has more than 10 committers, and they, I don't even think it's... I think Microsoft was really high at one point at six or seven. I don't think they're that high anymore, but it's, it's really spread out. In, in kind of a crazy way in that no central ownership is, is a fascinating thing beyond just the open source part.

49:20

Aaron Francis

Yeah, that is kind of wild. I don't know if I knew that about Postgres, but I certainly haven't thought about it in terms of other projects in the, in the open source world. And I will have to noodle on that, because that is very interesting, and I think you're right. I think it's unique. Um-

49:39

Craig Kerstiens

It's crazy

49:39

Aaron Francis

... 'cause I can't-

49:39

Craig Kerstiens

Yeah, when you s- when you pause, and you're like, oh, yeah, this, this open source database and that open source, and it's driven by a company, right? Part of it-

49:45

Aaron Francis

Right

49:45

Craig Kerstiens

... it's, it's, it's hard to build a database, right? And to-

49:48

Aaron Francis

Yeah.

49:49

Craig Kerstiens

I don't think it could be recreated in this day and age. Like, getting, getting 10 different developers to agree and, you know, just work together, like, in an open source fashion-

50:00

Aaron Francis

Mm-hmm

50:00

Craig Kerstiens

... without a financial backing behind it sounds crazy.

50:04

Aaron Francis

Sounds hard. Sounds real hard. Um, I wanna close with two things. One, I'm gonna spring on you because you mentioned it, and then I wanna talk about Citus and all its offerings. What do you know about DuckDB? It seems so cool, and I know so little about it, but it seems spiritually similar to SQLite for obvious reasons.

50:25

So what do, what do you know about DuckDB? What are they doing? What do you like about it? Um, just tell me your thoughts on DuckDB.

50:33

Craig Kerstiens

Yeah. It's, to me, it's fascinating, and I think that the general space of database is fascinating right now. Like, if, if you dove into databases and started, like, you know, podcasting about them 10 years ago, you'd, you know, you'd have, like, Will King level viewership- ... on his personal, um, YouTube channel. Um, I can't wait till he watches-

50:53

Aaron Francis

Shots-

50:53

Craig Kerstiens

... the entire episode and gets, gets pissed at me.

50:54

Aaron Francis

Shots fired. Will King catching strays over there. Sorry about that, buddy.

50:59

Craig Kerstiens

Um, like, data- databases aren't sexy, right? And yet they're, they're almost becoming sexy now. Is, like, is that kind of a-

51:09

Aaron Francis

Almost

51:10

Craig Kerstiens

... thing? Um, DuckDB, I, I think the, the creator, Hanus, like, really appreciates the idea of applying developer experience to database, which is-

51:20

Aaron Francis

Okay

51:20

Craig Kerstiens

... not a thing I've ever heard anyone talk about. Um, I think SQLite is a perfect... It's a great local developer database. Like, you kind of don't need it as a server-hosted database generally, right? Um, it's the vectorized execution. Like, doing, doing deep database engineering, like the vectorized stuff is fascinating. When I say vectors, I don't mean AI, like database-

51:41

Aaron Francis

Mm-hmm

51:41

Craig Kerstiens

... vector execution. Um, PostGIS has had vectors in it for years and years and years. What they're doing is different and interesting. Um, but the general developer experience side of it to me is, is fascinating. I actually think it'll be around for years and years and years and years to come based on that.

51:58

Aaron Francis

Mm.

51:58

Craig Kerstiens

But I've also been in the database world to know, like, every database you're pr- you, you know, you go and look at today that you evaluate, there's a really good chance they're not around in 10 years. And I say that-

52:07

Aaron Francis

Mm

52:07

Craig Kerstiens

... having, you know, mentioned Astro Data, and Ateza, and Greenplum, and-

52:11

Aaron Francis

Yeah, all, all those that I've never heard of

52:13

Craig Kerstiens

... that were the hot thing 15 years ago, right? That it's like, how could this not be the next Oracle and a $10 billion company?

52:20

Aaron Francis

Mm-hmm.

52:20

Craig Kerstiens

And yet, where are they now, right? It's hard to build databases. It's hard to build a company around them. Um-

52:26

Aaron Francis

Mm-hmm

52:26

Craig Kerstiens

... DuckDB is fascinating because developer experience and Post- and, and databases don't normally go together in the same sentence.

52:35

Aaron Francis

Mm-hmm. Well, I've been watching them-

52:37

Craig Kerstiens

I always joke that Postgres... Sorry, I always joke Postgres is the least bad database. Like, databases aren't good. They're not fun and friendly. It's not like, "Yay, I get to work with my database today." I, you may say that, but I think most of us, you know-

52:49

Aaron Francis

Yeah, yeah, speak for yourself, honestly. Um-

52:52

Craig Kerstiens

Um, but most folks it's like, "Hey, Postgres works. It's reliable. It's safe," you know? I, I think people do feel that way about DuckDB, which is-

52:59

Aaron Francis

Mm-hmm

52:59

Craig Kerstiens

... is great for it.

53:01

Aaron Francis

Yeah. I've been watching them, uh, because of my forays into SQLite with, uh, Turso, and I think the Turso folks are friendly with the DuckDB people, and they're like it... I think they're maybe at Small Data SF right now or last week or something, and it just seems so cool. Like, I just watch all the stuff they're doing on Twitter, and I'm like, "I wanna do that." But, uh, who has the time?

53:25

But someday I'm gonna dive into DuckDB for real and learn everything there is to know about it because I do think it's fun. I think it's a lot of fun. Um, all right. Here's where I want to wrap it. Tell me, uh, you work at Crunchy Data. Crunchy Data, it seems like they've got, like, 10 things going on. So tell me all the, like, Crunchy, Crunchy bridge for all these different platforms and, like, what exactly does Crunchy do?

53:52

Craig Kerstiens

Postgres. Postgres-

53:53

Aaron Francis

Go on. Go on

53:54

Craig Kerstiens

... anywhere you want it, any way. Like, we have Fortune 500 companies, you know, large banks and healthcare companies that-

54:01

Aaron Francis

Mm-hmm

54:01

Craig Kerstiens

... rely on us for, like, on-premise Postgres, right? Like-

54:04

Aaron Francis

Okay

54:05

Craig Kerstiens

... they're like-

54:05

Aaron Francis

There you go

54:06

Craig Kerstiens

... "Hey, we've heard about this Postgres thing. We wanna do open source. Can you help us?"

54:10

Aaron Francis

Mm-hmm.

54:10

Craig Kerstiens

"We, we have, you know, I don't know, $100 million to spend in Oracle, and we're trying to, you know, check out this open source thing. Can you tell..." Like-

54:19

Aaron Francis

Wild

54:19

Craig Kerstiens

... we live in a different world, right? Enterprises move differently.

54:23

Aaron Francis

Right.

54:23

Craig Kerstiens

Um, so we have, you know, hey, everything you need to run production Postgres. And, like, well-

54:28

Aaron Francis

Mm-hmm

54:28

Craig Kerstiens

... Postgres is great. When, as an enterprise, you're like, "All right. We're gonna evaluate monitoring, okay? We're gonna... There's five products, right? And we're gonna... We're an enterprise, so we're gonna do a bake-off-

54:38

Aaron Francis

Mm-hmm

54:38

Craig Kerstiens

... and do a six-week trial of every monitoring tool. And now we're gonna do a six-month trial of every backup tool, and every DR tool, and every HR tool. And we finally evaluated, you know, 20 tools, and we found we, we like, you know, A, uh, you know, Q, and T, uh, and S. Uh-oh, S doesn't work with A.

54:59

Crap, we've gotta go back and reevaluate now. Like, do we wanna get rid of A-

55:02

Aaron Francis

Right

55:02

Craig Kerstiens

... or do we wanna get rid of..." Like, um, so basically kinda like Red Hat was to Linux, right? Like curated, for the enterprises, right, curated Postgres distribution. So that's kind of where we started. Like-

55:14

Aaron Francis

Interesting. Okay

55:15

Craig Kerstiens

... it's like you're an enterprise. You want production Postgres. We've got you covered We've got one of the oldest Kubernetes operators, uh, stateful operators, right? So way back in the early days, we got to know Core OS on this operator pattern thing, built a stateful operator for Postgres. Back when everyone's like, "No, no, no, no, you can't do database in, in Kubernetes. You can't do databases-

55:33

Aaron Francis

Mm-hmm

55:33

Craig Kerstiens

... in containers." Like, that was the, like, Wild West, you shouldn't be doing this. We did it, and we did it well and safely. Um, I think it's coming up on almost six years old now as, like, a stateful-

55:43

Aaron Francis

Wow

55:43

Craig Kerstiens

... Kubernetes operator. Um, I came on board about four years ago to build out Crunchy Bridge, and as I kind of mentioned earlier, it's like unfinished business with Postgres. Like-

55:51

Aaron Francis

Mm

55:51

Craig Kerstiens

... I want developers... A, a database should... is kind of like your bank. It should just be... Like, when your bank sends you a letter, it's probably 'cause you get free, like, uh, Social Security protection for a year 'cause they had a data breach, right? Like, you don't wanna hear from me. You wanna build your app.

56:08

Aaron Francis

Mm-hmm.

56:08

Craig Kerstiens

You want me to fade away-

56:09

Aaron Francis

Mm-hmm

56:09

Craig Kerstiens

... into the background, right? So how can I give you everything you need out of the box? Like, our $10 a month plan runs in an isolated VPC, support for BPC peering, SSO, like, there's no SSO tax-

56:21

Aaron Francis

Mm

56:21

Craig Kerstiens

... uh, encryption at rest, encryption at transit, point in time recovery. Um, like, with our equivalent of Data Clips for, like-

56:29

Aaron Francis

Mm

56:30

Craig Kerstiens

... 10 bucks a month for a true production grade database, right? Um, and-

56:34

Aaron Francis

And are you orchestrating that within my, for example, AWS account, or am I... Are you hosting that on your own in your own-

56:41

Craig Kerstiens

So it's in our own-

56:42

Aaron Francis

... infrastructure?

56:42

Craig Kerstiens

... but it's in an entirely isolated VPC.

56:45

Aaron Francis

Okay.

56:45

Craig Kerstiens

So every customer... Like, we run completely isolated data planes.

56:48

Aaron Francis

Mm.

56:48

Craig Kerstiens

So a centralized control plane for all the provisioning, monitoring, all that, but every customer's data is completely isolated.

56:55

Aaron Francis

Got it. Okay.

56:57

Craig Kerstiens

Um, and I mean, a lot of it's just, you know, "Hey, how can we make this so simple," right? Like, when your disk starts to get full, we alert you, alert you, alert you, and then auto-add, you know, scale it up and add size to it, right?

57:07

Aaron Francis

Mm.

57:07

Craig Kerstiens

Um, we've had a ton of folks migrate from Heroku or from RDS or wherever-

57:13

Aaron Francis

Mm-hmm

57:13

Craig Kerstiens

... and, like, for the exact same hardware, see, we've seen up to a three to 5X performance boost.

57:18

Aaron Francis

Wow.

57:18

Craig Kerstiens

Often it's 10, 20, 30%. I was kind of shocked at the three to 5X. It turns out-

57:23

Aaron Francis

Mm

57:23

Craig Kerstiens

... like, running Postgres really well is a valuable thing. Um-

57:28

Aaron Francis

Mm-hmm

57:28

Craig Kerstiens

... and then we recently actually started to get into kind of expand beyond just standard Postgres and moving more to, like, the data warehousing space.

57:35

Aaron Francis

Hmm.

57:35

Craig Kerstiens

So there we've embedded DuckDB under the covers, and we've got Postgres that talks to DuckDB natively and Dic- DivDB, DuckDB that knows how to, like, respond Postgres. So things like map data types and structs and-

57:50

Aaron Francis

What?

57:50

Craig Kerstiens

... geospatial functions and, uh, we, like, natively operate on Iceberg inside, you know. Like, you just connect to Postgres, and then you can query, like, an Iceberg table just like that. Are you familiar with Iceberg or not?

58:04

Aaron Francis

I have no idea what Iceberg is.

58:06

Craig Kerstiens

You familiar with Parquet?

58:08

Aaron Francis

Yeah, barely.

58:09

Craig Kerstiens

So Parquet is like a columnar compressed, like, file, right? If you had-

58:13

Aaron Francis

Okay

58:13

Craig Kerstiens

... like, 100 million records, and, like, think of it as a fancy, fancy CSV with, like, data types that are in a columnar compressed format, right?

58:20

Aaron Francis

Okay. Mm-hmm.

58:21

Craig Kerstiens

Iceberg came out of Netflix, but is, like, a, I think it's an Apache Foundation, like, file type.

58:28

Aaron Francis

Okay.

58:28

Craig Kerstiens

That is Parquet plus, plus. So if you've got 100 million record file that you write out one time, right?

58:34

Aaron Francis

Yeah.

58:34

Craig Kerstiens

Well, if you've got 100 new records that you've got, like, suddenly, like, "Well, we got 100 users. We've got to delete from this file," with Parquet, you've got to write out a new file.

58:44

Aaron Francis

Oh, I see.

58:44

Craig Kerstiens

Iceberg has this, like, metadata that has a repository that points to, "Oh, here's this, like, 100,000 file, and then here's this change set, here's this change set, here's this change set." So you don't have to go write out a whole new set. It's like Parquet plus, plus. Um, Snowflake, um, Databricks, um, uh, ClickHouse, all are generally starting to support Iceberg now.

59:06

It's like the future-

59:07

Aaron Francis

Okay

59:08

Craig Kerstiens

... of, like, in that data lake space.

59:10

Aaron Francis

Yeah.

59:10

Craig Kerstiens

So it's fascinating. But the thing is, for us, like, you're using Postgres. You love Postgres.

59:18

Aaron Francis

Mm-hmm.

59:18

Craig Kerstiens

You don't have to think about Iceberg. You don't have to know about it, right? If you wanna say, "I wanna just archive my data into S3 in a compressed columnar format," just continue to work with Postgres. We do all that heavy lifting for you. So that's our biggest la- like, last push. Like, I managed to, to recruit the, like, Citus lead architect, Citus lead engineer to start building an s- like, the world's expert on Postgres extensions, and I don't say that lightly.

59:43

They're like, "Let's go do crazy data warehousing things with Postgres, and kind of take it to where it's never been."

59:48

Aaron Francis

Cool.

59:49

Craig Kerstiens

But basically, if you want someone to help you run Postgres or manage Postgres for you, the short is we do it really well, and you don't need to be a Postgres expert. I-

59:58

Aaron Francis

Mm.

59:58

Craig Kerstiens

I gave up on trying to teach people, like, Postgres, and that they should learn SQL. I, I appreciate, uh, your campaign so much, 'cause I'm just like, man, these developers, like they just wanna write in, you know, Active Record, and it's-

1:00:12

Aaron Francis

Mm-hmm

1:00:12

Craig Kerstiens

... it's... Man, the, the queries that come out of it are, are rough.

1:00:16

Aaron Francis

Mm-hmm.

1:00:16

Craig Kerstiens

Um, SQL's not a good language. It's a powerful one. It's, it's not a good language. It's a powerful one.

1:00:22

Aaron Francis

Well, I'm doing what I can to turn, to turn the tides there. I want, uh... I, I come from a very, it sounds like very, uh, similar place as you, as, like, from the developer's point of view, and my goal is to hopefully empower developers to know and like and be proficient in, uh, SQL and these different databases.

1:00:44

And then if you wanna use Active Record, that's fine, but at least now you understand what's happening, and you can spot, uh, a terrible Active Record query whenever you see it, versus just, like, "Ah, I just use, you know, I just use Active Record or Eloquent or whatever." Um, I want you to be, like, an expert user of an ORM should you decide to use an ORM.

1:01:06

That's my goal.

1:01:06

Craig Kerstiens

Yeah. I, I just don't want you to be afraid of your database. Like, that's-

1:01:10

Aaron Francis

Man. Same

1:01:10

Craig Kerstiens

... that's why we built and launched, like, the Postgres Playground. Like, I, I don't know if you poked around-

1:01:14

Aaron Francis

Yeah, that's cool

1:01:14

Craig Kerstiens

... but it's like, it's like this is Postgres running in your web browser, but now-

1:01:18

Aaron Francis

Mm-hmm

1:01:18

Craig Kerstiens

... with, like, guided tutorials where we-

1:01:20

Aaron Francis

Mm-hmm

1:01:20

Craig Kerstiens

... like, bootstrap, like, the, the database with some example. Like, you know, we'll go run some queries ahead of time in your browser against it so that you have, like, stats in your database in the browser.

1:01:30

Aaron Francis

Mm-hmm.

1:01:31

Craig Kerstiens

And you don't have to worry about, like, what happens if I run this command. It's in your browser. Refresh.

1:01:35

Aaron Francis

Yep.

1:01:35

Craig Kerstiens

Data's back. Like, the idea that how do we let you work with Postgres and get more comfortable with it so you're not scared of your database.

1:01:42

Aaron Francis

Mm-hmm. Yeah. That, that in-browser playground is cool. I've absolutely played around with that. Y'all also have a great blog. I have some of them printed out around here. But y'all have a great blog with lots of contributors, um, over at Crunchy. It's very impressive. Um, okay. Well, thank you for being so generous with your time. Is there anything else, uh, that we didn't cover, or/and, uh, where can people find you to learn more to follow along?

1:02:07

Craig Kerstiens

Um, I think you mentioned, you know, the Crunchy Data blog and newsletter. It's a, you know, spend a lot of time there. I'm pretty easy to find. You can, if you can kind of spell my last name, Craig Kerstiens on, you know. Find me... I'm pretty easy to find on the internet. Um-

1:02:20

Aaron Francis

Mm-hmm

1:02:20

Craig Kerstiens

... and by all means, like, drop me notes, DMs, emails. I'm generally happy to help, but I, I can't. Like, it's been a fun tech r- I'm not done yet. I'm not washed up and retiring tomorrow, but it's been a fun tech ride. And so, like, very happy to try to, you know, connect with folks and, and give back, you know, wherever I can.

1:02:37

Aaron Francis

Well, this is one way that you have done so. I super appreciate it. Thank you for doing this, and we will talk soon.

1:02:43

Craig Kerstiens

Yeah. Thanks so much.

1:02:44

Aaron Francis

See ya.

Databases

More videos on databases

All videos

Get the next one by email

I’ll send you some more. Not too many.

Join 7,500+ other readers.

Read past issues