1
00:00:04,600 --> 00:00:09,120
[CLAIRE] Welcome to Talking Postgres, a monthly podcast for developers who love this database.

2
00:00:09,760 --> 00:00:14,780
I'm your host, Claire Giordano, and in this pod we explore the human side of Postgres databases

3
00:00:15,100 --> 00:00:20,360
and open source, which means why do people who work with Postgres do what they do and how did

4
00:00:20,440 --> 00:00:25,480
they get there? I want to say thank you to the team at Microsoft for sponsoring today's conversation.

5
00:00:26,340 --> 00:00:28,460
And today's guest is Gwen Shapira.

6
00:00:29,660 --> 00:00:36,000
Gwen is the co-founder and CPO at Nile, which was founded about four years ago.

7
00:00:36,480 --> 00:00:39,860
And Nile is best known for making Postgres multi-tenant.

8
00:00:40,680 --> 00:00:45,960
Prior to Nile, Gwen worked at other data companies like Confluent and Cloudera.

9
00:00:46,680 --> 00:00:49,700
She has a Bachelor of Science in Computer Science and Statistics,

10
00:00:50,520 --> 00:00:55,320
lives in Silicon Valley, Northern California, not too far from where I live,

11
00:00:55,600 --> 00:00:57,600
although we've never met in person around here.

12
00:00:58,500 --> 00:01:02,080
And Gwen has worked in and around databases for over 20 years now,

13
00:01:02,640 --> 00:01:05,000
although not always with Postgres,

14
00:01:05,320 --> 00:01:06,980
which is something we're going to talk about.

15
00:01:07,760 --> 00:01:10,360
Gwen is the author of two technical books about data,

16
00:01:10,600 --> 00:01:13,120
and she's also active in the Postgres open source community.

17
00:01:13,920 --> 00:01:14,460
Welcome, Gwen.

18
00:01:15,700 --> 00:01:21,600
[GWEN] It's so exciting to be here Claire I've been listening to your podcast for a couple of years

19
00:01:21,880 --> 00:01:25,920
now. It is the best way to learn about the community.

20
00:01:27,180 --> 00:01:29,860
[CLAIRE] I am so flattered to hear you say that.

21
00:01:30,870 --> 00:01:34,900
I know that a lot of people who work with Postgres, I want to say a lot, I guess I'm

22
00:01:35,020 --> 00:01:41,400
thinking of Melanie Plageman in particular, she will often listen to recordings of

23
00:01:41,420 --> 00:01:47,220
Postgres conference talks while she's out for a run as another way of learning through osmosis.

24
00:01:47,680 --> 00:01:52,080
But I do think podcasts are nice because you're not missing out on any of the video because there

25
00:01:52,080 --> 00:01:57,080
is no video and you can just listen and do whatever it is you're doing. So I'm so glad you've

26
00:01:57,140 --> 00:02:05,380
been enjoying it. Today's topic is how I went from Oracle to Postgres with a big NoSQL detour,

27
00:02:05,580 --> 00:02:08,160
where I, in this case, is not me, but it's you.

28
00:02:10,020 --> 00:02:13,600
And I thought we could just start with your origin story as a developer,

29
00:02:13,840 --> 00:02:15,320
because that's where we always start.

30
00:02:16,280 --> 00:02:25,180
[GWEN] Yeah so the beginning was kind of normal I think I was doing a degree in computer science

31
00:02:25,180 --> 00:02:27,040
over in Tel Aviv.

32
00:02:29,120 --> 00:02:32,720
I needed to make some money to pay for the degree.

33
00:02:33,600 --> 00:02:36,600
So I got a part-time job as a developer.

34
00:02:39,040 --> 00:02:42,300
And the first year, I was basically programming

35
00:02:42,660 --> 00:02:44,680
first Visual Basic and in Java.

36
00:02:45,920 --> 00:02:48,640
But the guy I really admired on the team

37
00:02:49,200 --> 00:02:50,300
was the Oracle guy.

38
00:02:51,120 --> 00:02:52,960
He knew everything.

39
00:02:53,460 --> 00:02:59,500
By the way, just in case Hanan Hit is listening, you had a lot of influence on my life.

40
00:03:00,800 --> 00:03:01,820
So he was so good.

41
00:03:01,990 --> 00:03:03,260
And he knew everything.

42
00:03:03,630 --> 00:03:04,280
That was the thing.

43
00:03:04,280 --> 00:03:07,100
Developers knew their programming language.

44
00:03:07,460 --> 00:03:08,260
They knew algorithms.

45
00:03:09,020 --> 00:03:15,900
This guy knew where to place blocks on the spinning disk so they would be on the fastest

46
00:03:16,190 --> 00:03:16,400
sectors.

47
00:03:17,360 --> 00:03:21,980
And the correct adjustments of the buffer sizes on the network.

48
00:03:22,140 --> 00:03:27,800
And what is the latency if the nurse bridge between the CPU and the memory is under congestion.

49
00:03:28,360 --> 00:03:34,100
You can give him, you know, I'm seeing extra 85 milliseconds of latency and he will tell you,

50
00:03:34,200 --> 00:03:40,040
oh, your bottleneck is probably over there. Go take a look. So I had just tons and tons of admiration

51
00:03:40,310 --> 00:03:45,360
to this guy who just seems to know absolutely everything. And being young and impressionable,

52
00:03:46,080 --> 00:03:48,860
I wanted to be just like him when I grew up.

53
00:03:49,560 --> 00:03:52,200
So I started taking database classes.

54
00:03:53,920 --> 00:03:59,120
First, it was just like courses that a local company gave.

55
00:03:59,700 --> 00:04:02,440
And then, you know, it was reading book after book.

56
00:04:02,960 --> 00:04:05,560
And there were some blogs at the time.

57
00:04:05,800 --> 00:04:08,220
So I also started following database bloggers.

58
00:04:08,900 --> 00:04:13,600
And that was kind of also my introduction to social media,

59
00:04:14,720 --> 00:04:17,640
what social media was back in maybe 2005.

60
00:04:18,880 --> 00:04:22,240
And then when I finished my degree and started working full time,

61
00:04:22,660 --> 00:04:24,420
I got the database role.

62
00:04:25,680 --> 00:04:27,600
That was kind of how it all started.

63
00:04:30,460 --> 00:04:36,460
[CLAIRE] I read somewhere, though, that when you finished your degree, you were offered a job as an engineering

64
00:04:36,820 --> 00:04:39,000
manager for the web team.

65
00:04:39,140 --> 00:04:40,760
Am I misremembering that?

66
00:04:41,120 --> 00:04:45,360
But you wanted to become a DBA instead because you would learn more about databases.

67
00:04:45,750 --> 00:04:46,940
Do I recall that right?

68
00:04:45,820 --> 00:04:54,860
[GWEN] Oh yes it was so yes I think I was actually leading the team for about three months or so

69
00:04:55,020 --> 00:05:04,020
but yeah it was not for me and I was also kind of managing people who were many years older than me.

70
00:05:05,420 --> 00:05:11,840
Yeah, it was it was a good experience in the sense that my own manager was really good and was super

71
00:05:12,180 --> 00:05:21,699
supportive and I learned a lot from him just in how to be a good manager but I also learned that

72
00:05:21,720 --> 00:05:25,880
if you have basically zero experience, you're not going to be a good manager.

73
00:05:26,840 --> 00:05:29,900
You have to have some level of credentials.

74
00:05:30,300 --> 00:05:33,300
You have to know how to earn the respect of a team.

75
00:05:34,560 --> 00:05:38,840
So that was first a not great experience as a manager.

76
00:05:39,060 --> 00:05:43,960
And I backtracked within weeks, if I recall correctly.

77
00:05:45,220 --> 00:05:50,460
The next time I tried being a manager, I was more experienced and it worked a lot better.

78
00:05:52,600 --> 00:05:58,400
[CLAIRE] Okay, so when you got started with databases then after you got your degree, which database

79
00:05:58,540 --> 00:05:59,820
were you working on initially?

80
00:05:59,940 --> 00:06:01,240
I know it was not Postgres.

81
00:06:02,160 --> 00:06:08,440
[GWEN] Yeah I know it was not. Postgres was extremely young at that time, we're talking about year

82
00:06:09,940 --> 00:06:20,520
2004-ish so there was not a ton of Postgres community and there's honestly MySQL

83
00:06:20,540 --> 00:06:24,360
was kind of the LAMP stack, but everyone knew that if you're building a serious product,

84
00:06:24,460 --> 00:06:27,700
you have to go with Microsoft, IBM, or Oracle.

85
00:06:28,640 --> 00:06:32,120
And we started with Microsoft SQL Server.

86
00:06:32,920 --> 00:06:39,760
And again, at the time, it was still fairly newish and caused us a bunch of headaches.

87
00:06:40,420 --> 00:06:45,360
But honestly, the reason we moved to Oracle from that, also in fairly short order,

88
00:06:45,620 --> 00:06:50,060
was that the DBA really admired was an Oracle expert.

89
00:06:50,580 --> 00:06:53,200
And always a good bet to use the technologies

90
00:06:53,480 --> 00:06:55,620
that you already have people who are experts on.

91
00:06:56,280 --> 00:07:01,260
[CLAIRE] Yeah, there's a classic phrase that I've always loved, which is the best tool is the familiar

92
00:07:01,380 --> 00:07:05,380
tool or something like that. People pick what they know.

93
00:07:05,900 --> 00:07:06,920
[GWEN] Yeah, pretty much.

94
00:07:07,240 --> 00:07:08,660
They are in their comfort zone.

95
00:07:08,900 --> 00:07:10,200
They solve issues faster,

96
00:07:10,400 --> 00:07:12,360
so everyone around them feel a lot better.

97
00:07:13,180 --> 00:07:15,980
So yeah, that's basically how I landed on Oracle.

98
00:07:16,190 --> 00:07:18,760
I think it was Oracle 9 at the time.

99
00:07:19,560 --> 00:07:24,020
And I stuck around all the way to Oracle 12.

100
00:07:24,820 --> 00:07:27,720
And then that was enough Oracle for my entire career.

101
00:07:30,120 --> 00:07:30,460
[CLAIRE] Got it.

102
00:07:31,220 --> 00:07:36,440
Okay, so Oracle 9 through Oracle 12, I don't speak Oracle release numbers, so I have no

103
00:07:36,660 --> 00:07:39,060
idea how much, how long that time period was.

104
00:07:40,320 --> 00:07:40,700
[GWEN] Oh, wow.

105
00:07:40,970 --> 00:07:41,780
Okay, let's see.

106
00:07:42,200 --> 00:07:46,040
I think 2004, I think, was Oracle 9.

107
00:07:46,840 --> 00:07:52,720
And then all the way to 2012, I believe.

108
00:07:52,800 --> 00:07:56,000
I think Oracle 12 was in 2012.

109
00:07:56,960 --> 00:07:59,460
But, yeah.

110
00:07:57,680 --> 00:08:00,080
[CLAIRE] So almost a decade, eight years-ish.

111
00:08:00,420 --> 00:08:00,600
[GWEN] Yes.

112
00:08:00,920 --> 00:08:04,960
By the way, Oracle is kind of famous for gaming the version system.

113
00:08:05,420 --> 00:08:09,280
So the first version of Oracle was either Oracle 2 or Oracle 3.

114
00:08:09,940 --> 00:08:17,160
And it was intentionally not version one because nobody would use version one for the production database, right?

115
00:08:20,460 --> 00:08:43,919
[CLAIRE] You know, when I graduated from college, I actually, you know, as one often does is you interview with lots of companies, you don't know if anyone's going to make you a job offer, you kind of wait and see what's going to happen. And I did get a job offer from Oracle. But I didn't go there. I went to Sun Microsystems instead. But I think I would probably know even more about databases had I gone to Oracle back in the day.

116
00:08:44,540 --> 00:08:47,580
[GWEN] If they did kind of try to get you back by acquiring

117
00:08:47,900 --> 00:08:49,360
Sun Microsystems a few years later.

118
00:08:50,400 --> 00:08:51,780
[CLAIRE] Well, more than a few years later.

119
00:08:52,000 --> 00:08:58,020
But yes, I had left Sun at that point a few years before the acquisition.

120
00:08:58,380 --> 00:09:00,060
So it didn't happen.

121
00:09:00,280 --> 00:09:01,780
Never got an Oracle paycheck.

122
00:09:03,320 --> 00:09:04,540
Okay, so you worked with Oracle.

123
00:09:04,730 --> 00:09:10,200
And when you were working with Oracle for that eight-ish years, what kind of role did you have?

124
00:09:10,200 --> 00:09:11,040
What kind of job?

125
00:09:11,220 --> 00:09:12,240
Were you a user?

126
00:09:12,410 --> 00:09:14,940
Were you a developer contributor?

127
00:09:16,640 --> 00:09:16,900
Tell me.

128
00:09:16,900 --> 00:09:26,520
[GWEN] Yeah, so basically I was, DevOps was not really a thing, but it was kind of a DevOps role.

129
00:09:27,040 --> 00:09:31,380
So we basically owned the production, large set.

130
00:09:31,380 --> 00:09:38,140
I think we were like six people who owned hundreds of Oracle databases across the company.

131
00:09:39,340 --> 00:09:46,000
And then it was really automating, managing it and answering complaints about why is my

132
00:09:46,020 --> 00:09:52,920
database slow? Why did my report not show up on time? Why are the numbers all wrong? You know, the usual.

133
00:09:54,220 --> 00:09:57,900
[CLAIRE] Okay, so you built some diplomacy skills then answering all these complaints.

134
00:09:58,120 --> 00:10:01,620
Is that in addition to your technical skills?

135
00:10:00,440 --> 00:10:08,900
[GWEN] You know, diplomacy has always been very challenging for me. I think it's a bit of a

136
00:10:09,020 --> 00:10:17,780
culture thing. I tend to be direct and also known to drop F-bombs where, you know, the storage does

137
00:10:18,020 --> 00:10:23,820
not behave appropriately and gives me 50 millisecond latency for trying to read something.

138
00:10:26,680 --> 00:10:32,660
So I don't know if that was the point where I developed the diplomacy, but when I left, at that

139
00:10:32,760 --> 00:10:40,580
point it was HP, when I left HP and started doing consulting, I very quickly had to learn diplomacy

140
00:10:41,000 --> 00:10:46,760
because the one rule of consulting is that it's always the consultant's fault. Nobody who was

141
00:10:47,220 --> 00:10:52,980
ever hired by the company could break the database. If anything breaks, it has to be the consultant.

142
00:10:54,520 --> 00:10:56,960
[CLAIRE] I thought it was always the intern's fault.

143
00:10:57,370 --> 00:10:58,020
I missed that.

144
00:10:58,150 --> 00:11:00,440
Okay, I'm going to change it to the consultant's fault.

145
00:11:02,740 --> 00:11:13,040
[GWEN] So you kind of have to learn how to navigate, you know, document every decision that was taken and make sure that it was all approved by the appropriate channels.

146
00:11:13,740 --> 00:11:19,680
Figure out who is the person actually making the decision and who are people with a lot of opinions.

147
00:11:20,560 --> 00:11:26,180
Figure out how to work with the people making the decision to influence the decisions.

148
00:11:26,320 --> 00:11:28,020
While you are a consultant,

149
00:11:28,200 --> 00:11:31,300
you have no formal power in this organization at all.

150
00:11:31,740 --> 00:11:34,700
All you have is hopefully good advice.

151
00:11:35,500 --> 00:11:38,740
If you do a good job in testing and benchmarking,

152
00:11:38,980 --> 00:11:40,900
then you also have some numbers on your side,

153
00:11:41,600 --> 00:11:43,060
but that's about it.

154
00:11:43,420 --> 00:11:46,980
And you still have to try to make your customers successful.

155
00:11:48,840 --> 00:11:58,200
[CLAIRE] Okay, so I want to dive in more to those years between Oracle and your work now at Postgres.

156
00:11:58,380 --> 00:12:01,260
But first, let's fast forward to you work with Postgres now.

157
00:12:01,420 --> 00:12:02,760
You're at a company called Nile.

158
00:12:03,300 --> 00:12:05,620
Tell me what you do, what your job is.

159
00:12:03,440 --> 00:12:03,520
[GWEN] Yes.

160
00:12:05,820 --> 00:12:06,440
[CLAIRE] What is Nile?

161
00:12:06,640 --> 00:12:15,600
[GWEN] Yeah so we founded Nile more or less four years ago it was all people who left Confluent in the

162
00:12:15,620 --> 00:12:22,080
beginning. And originally it was not supposed to be a Postgres company. It was supposed to be kind

163
00:12:22,080 --> 00:12:33,300
of a SaaS for SaaS company, building a platform. We had some Kubernetes inspired ideas and we had a

164
00:12:33,400 --> 00:12:38,900
lot of customers' conversations. It didn't really end up with a product that neither we nor anyone

165
00:12:39,060 --> 00:12:45,460
else really love. But from all those conversations, we discovered that everyone we talked to

166
00:12:46,420 --> 00:12:51,840
was using Postgres. And we're like, if we want to really solve problems for all those companies

167
00:12:52,020 --> 00:12:57,240
that we're talking to, let's look at what Postgres is helping them with and what it isn't. Why are

168
00:12:57,240 --> 00:13:02,400
they even using Postgres? What can they do with Postgres? And very quickly, I found out that they

169
00:13:02,460 --> 00:13:07,980
can do with Postgres literally everything. It was amazing. And it had all those extensions. And it

170
00:13:08,000 --> 00:13:15,260
was reliable for them. And they built queues on Postgres and vectors on Postgres. And everyone

171
00:13:15,520 --> 00:13:22,300
loved it. And it was so, I don't want to disparage other databases, but it's very rare that developers

172
00:13:22,550 --> 00:13:30,500
actually love their database that much. So I was kind of like, okay, we need to get some of this

173
00:13:30,660 --> 00:13:37,160
love, essentially. And when we looked at the things that were difficult for them, it was always things.

174
00:13:37,180 --> 00:13:43,560
It's like, you know, we have hundreds or thousands or hundreds of thousands of customers,

175
00:13:43,980 --> 00:13:49,620
and we either put them all on the same Postgres with this customer ID column, and then later

176
00:13:49,690 --> 00:13:55,220
we try to do some sharding, or we start putting everyone on one database, and then we try to

177
00:13:55,290 --> 00:13:56,460
figure out how to scale it.

178
00:13:57,100 --> 00:14:03,900
But there was no really good tools for managing this architecture that literally everyone has.

179
00:14:04,940 --> 00:14:12,140
Everyone has a lot of, every SaaS company, every B2B, it has so many customers on Postgres.

180
00:14:13,339 --> 00:14:16,320
And very, there's great Postgres tools.

181
00:14:16,430 --> 00:14:17,320
We love the ecosystem.

182
00:14:17,660 --> 00:14:18,920
That's what drew us into it.

183
00:14:19,230 --> 00:14:22,240
But there weren't tools for these things that everyone is doing.

184
00:14:23,279 --> 00:14:26,720
So we're like, okay, we know what we have to build.

185
00:14:29,740 --> 00:14:33,540
[CLAIRE] When you mentioned that Postgres can do literally everything,

186
00:14:34,040 --> 00:14:35,980
the word everything stuck in my mind.

187
00:14:36,920 --> 00:14:39,080
And I was trying to think of where did I hear that recently?

188
00:14:39,300 --> 00:14:40,220
Where did I hear that recently?

189
00:14:41,820 --> 00:14:44,320
Coming in June at this year's POSETTE,

190
00:14:44,480 --> 00:14:46,180
it's the fifth year of the virtual conference

191
00:14:46,310 --> 00:14:47,340
my team organizes,

192
00:14:47,730 --> 00:14:49,320
there is a talk titled

193
00:14:49,550 --> 00:14:52,520
The Rise of Postgres as the Everything Database,

194
00:14:53,160 --> 00:14:55,020
which just reminds me of what you're saying.

195
00:14:55,140 --> 00:15:08,620
[GWEN] Exactly that. There is also a book, I think, Just Use Postgres, which basically just goes over all the everything you can do in Postgres in case you have a Postgres and you feel like you may not be making the most out of it.

196
00:14:55,140 --> 00:15:13,160
[CLAIRE] And I actually have a copy of that Just Use Postgres book down the hall.

197
00:15:13,360 --> 00:15:18,200
Dennis Magda sent me a version of it, and I think he even autographed it, which is kind

198
00:15:18,200 --> 00:15:18,420
of cool.

199
00:15:19,080 --> 00:15:20,520
[GWEN] Dennis is really, really cool.

200
00:15:21,140 --> 00:15:21,440
[CLAIRE] I know.

201
00:15:21,660 --> 00:15:21,920
I know.

202
00:15:21,980 --> 00:15:24,700
And let's see, who's the speaker on this, the rise of Postgres?

203
00:15:25,160 --> 00:15:26,960
Varun Dhawan is giving that talk.

204
00:15:27,170 --> 00:15:30,780
So yeah, it is popular.

205
00:15:31,300 --> 00:15:31,840
Let's face it.

206
00:15:32,650 --> 00:15:35,000
And you built your company around it, which is kind of cool.

207
00:15:35,400 --> 00:15:41,020
How long was that journey from starting the company and having these Kubernetes-inspired

208
00:15:41,240 --> 00:15:46,800
ideas to kind of drilling down on multi-tenancy and Postgres?

209
00:15:47,720 --> 00:15:56,640
[GWEN] So I think it took us a year from the point where we started the company until we decided that, yes, we want to build multi-tenant Postgres.

210
00:15:58,240 --> 00:16:04,400
And then it turned out that building multi-tenant Postgres is actually the hard part.

211
00:16:04,890 --> 00:16:09,140
And we had a lot of iterations of different ways of doing it.

212
00:16:10,040 --> 00:16:16,460
And I think we are now landing on the architecture we really love.

213
00:16:16,860 --> 00:16:21,760
But again, Postgres is really large and it has huge surface area.

214
00:16:22,380 --> 00:16:26,560
And I think everyone wants to be as compatible as possible.

215
00:16:27,460 --> 00:16:34,640
So it was definitely a large journey to understand how to hook into Postgres correctly.

216
00:16:35,740 --> 00:16:39,480
You know, the things that everyone who tries to contribute to Postgres knows.

217
00:16:39,710 --> 00:16:44,620
You try to change one thing, you break five other things somewhere else.

218
00:16:45,100 --> 00:16:47,900
It's very interdependent, very interconnected.

219
00:16:48,940 --> 00:16:55,000
If you try to make a change, let's say somewhere around visibility maps, maybe,

220
00:16:55,740 --> 00:17:02,420
or you try to hook into the way the query planner work, you risk having bad plans.

221
00:17:02,570 --> 00:17:06,040
You risk maybe seeing data that should have been isolated.

222
00:17:06,150 --> 00:17:10,800
So you need to be very careful about how you're doing things.

223
00:17:11,339 --> 00:17:17,000
And obviously working with amazing Postgres experts on our team was the key to that,

224
00:17:17,579 --> 00:17:21,439
because I showed up knowing a lot about databases in general,

225
00:17:21,939 --> 00:17:27,120
but not about Postgres and not even that much about internals.

226
00:17:27,240 --> 00:17:33,660
The only open source database, relational database that I worked with was MySQL.

227
00:17:34,020 --> 00:17:39,500
And I didn't do that much internals for it, a bit on the storage layer, but that would be about it.

228
00:17:40,500 --> 00:17:42,580
[CLAIRE] Okay, because your years at Oracle,

229
00:17:43,020 --> 00:17:45,760
you were really focused on the user side of things, right?

230
00:17:45,940 --> 00:17:52,360
You were responsible for all of those servers, which I actually think is great experience [yeah exactly]

231
00:17:52,780 --> 00:17:55,260
for someone who wants to be a chief product officer, right?

232
00:17:55,520 --> 00:17:58,800
It helps to have stood in some of your customer's shoes.

233
00:17:59,380 --> 00:18:03,860
Obviously, all customers are unique and different, and so you can't understand them all.

234
00:18:04,140 --> 00:18:10,480
But yeah.

235
00:18:05,140 --> 00:18:13,260
[GWEN] Yeah and it's also the inverse I mean if you love technology but also really love talking to people

236
00:18:13,340 --> 00:18:15,260
helping them use the technology best.

237
00:18:16,010 --> 00:18:17,300
Today, there is a bunch of roles.

238
00:18:17,620 --> 00:18:20,740
I mean, you can be in developer relations,

239
00:18:21,210 --> 00:18:22,720
you can be in developer marketing,

240
00:18:22,910 --> 00:18:28,060
you can be in the kind of professional services roles,

241
00:18:28,060 --> 00:18:29,840
you can be a product manager.

242
00:18:30,600 --> 00:18:33,960
Back then, it was basically professional services or product.

243
00:18:34,200 --> 00:18:36,820
DevRel is a more recent phenomenon.

244
00:18:37,759 --> 00:18:41,120
So, yeah, that's kind of,

245
00:18:41,280 --> 00:18:47,820
I think my inclination was always toward working closely with the people who use the technology.

246
00:18:48,530 --> 00:18:53,160
And that's kind of how I landed in all the roles that I landed in.

247
00:18:54,260 --> 00:18:59,500
[CLAIRE] Okay, but I'm still really curious about how you spun up on the Postgres technology.

248
00:18:59,590 --> 00:19:04,280
You said a minute ago that it helped that you were surrounded by these deep Postgres experts,

249
00:19:04,830 --> 00:19:05,900
which I totally get.

250
00:19:06,380 --> 00:19:08,640
But what else did you do?

251
00:19:08,920 --> 00:19:09,980
Everybody learns differently.

252
00:19:10,660 --> 00:19:14,280
So I know that the way you learn won't work for everyone, but I'm still curious.

253
00:19:15,020 --> 00:19:22,539
[GWEN] Yeah definitely so actually I was very lucky that I was not the only person who moved from

254
00:19:22,560 --> 00:19:29,020
Oracle to Postgres a lot of my friends did it and some of them did it earlier than me some of them

255
00:19:29,080 --> 00:19:35,660
did it more or less at the same time so the first thing I did was reach out to my friend

256
00:19:36,400 --> 00:19:40,860
Jeremy Schneider who used to be my teammate.

257
00:19:41,520 --> 00:19:44,080
[CLAIRE] Who I am trying to get on this podcast.

258
00:19:44,450 --> 00:19:47,140
He had me up at the Seattle Postgres Users Group

259
00:19:47,560 --> 00:19:51,140
that he organizes, co-organizes a couple of months ago.

260
00:19:51,560 --> 00:19:55,120
And anyway, he gave me a soft yes.

261
00:19:55,630 --> 00:19:57,940
In other words, a possible future yes

262
00:19:58,110 --> 00:19:59,420
without a date commitment.

263
00:19:59,890 --> 00:20:00,840
So I'm working on him.

264
00:20:00,840 --> 00:20:02,180
And if you're listening to this, Jeremy,

265
00:20:02,330 --> 00:20:03,720
just know that I haven't forgotten.

266
00:20:03,060 --> 00:20:07,860
[GWEN] Yeah Jeremy we definitely need you on this podcast it's it's vital

267
00:20:08,860 --> 00:20:16,180
so yeah and he so he helped me at all so you probably know he has his happiness chart which

268
00:20:16,320 --> 00:20:22,760
is like a small gif with all his tips on how to not I wouldn't say how to succeed with

269
00:20:23,040 --> 00:20:29,520
but definitely how not to shoot yourself in the foot so I made everyone print it out and hang it

270
00:20:29,820 --> 00:20:32,359
next to their desk and look at it several times daily.

271
00:20:32,740 --> 00:20:33,260
[CLAIRE] Is this published?

272
00:20:33,600 --> 00:20:34,820
Can we find it online somewhere?

273
00:20:35,220 --> 00:20:37,780
[GWEN] Yeah if you search for Postgres happiness,

274
00:20:39,640 --> 00:20:47,100
happiness hints I think it's called, [I'll put it in the show notes for this show] then yeah this is so important for everyone who is.

275
00:20:47,160 --> 00:20:53,680
Getting started you it's again it's not even close to everything you need to know it's just that

276
00:20:54,980 --> 00:21:00,619
it's some hints and those hints are very and it's very short so you can memorize all of it and just

277
00:21:00,640 --> 00:21:08,900
avoid stupid mistakes. It will make you look better in life in general, I think. So he gave me that.

278
00:21:08,940 --> 00:21:21,180
He gave me two books with internals to read. And then he also suggested basically a bunch of

279
00:21:22,380 --> 00:21:30,600
blog posts. I think the Postgres FM podcast showed up in there. So yeah, he basically sent me a list of

280
00:21:30,640 --> 00:21:36,000
read all of this and obviously the docs are pretty good so he was like yeah you should read the docs

281
00:21:36,560 --> 00:21:40,480
but you know most people just say they read the docs you have to really read the docs

282
00:21:42,580 --> 00:21:48,620
and then he I think he actually also recommended your podcast as more like this is not where you're

283
00:21:48,620 --> 00:21:53,640
going to learn the technical skills but the community is important so I think that's also

284
00:21:53,660 --> 00:21:56,140
where I got your podcast from.

285
00:21:57,460 --> 00:21:58,200
[CLAIRE] Well, thank you, Jeremy.

286
00:22:00,140 --> 00:22:02,680
[GWEN] So anyway, he dumped all those resources on me.

287
00:22:03,280 --> 00:22:06,580
And then, you know, you find the mailing lists,

288
00:22:07,000 --> 00:22:09,160
which also I haven't asked questions,

289
00:22:09,760 --> 00:22:11,880
but just reading them can be helpful.

290
00:22:12,300 --> 00:22:14,520
Searching, it's years and years of mailing list.

291
00:22:14,520 --> 00:22:17,460
You learn a lot just by searching the history.

292
00:22:19,200 --> 00:22:21,780
So I think that's more or less where we got started.

293
00:22:22,040 --> 00:22:25,200
And then, oh, the most important bit, Postgres is open source.

294
00:22:25,640 --> 00:22:26,620
I could read the code.

295
00:22:27,200 --> 00:22:32,740
And it's actually so readable and so nicely written.

296
00:22:33,120 --> 00:22:41,000
And so many helpful comments and the various readme's and the readme on the transactions part.

297
00:22:41,880 --> 00:22:44,300
It actually explains how transactions work.

298
00:22:44,320 --> 00:22:48,080
I mean, it's amazing as one would expect from a readme.

299
00:22:48,800 --> 00:22:57,260
So it sounds like faint praise, but honestly, a lot of open source code is a mess.

300
00:22:57,480 --> 00:23:12,100
And the fact that this community manages to keep readable, well-contained, well-structured code is great documentation for freaking 30 years with so many people.

301
00:23:12,340 --> 00:23:17,080
There's the core contributors, but then there's just a lot of drive-bys who show up and make

302
00:23:17,240 --> 00:23:24,540
one contribution and then kind of go away. And the code did not devolve into a large mess of

303
00:23:24,840 --> 00:23:28,640
spaghetti. It's amazing. I was so impressed.

304
00:23:28,760 --> 00:23:29,000
*laughs*

305
00:23:30,720 --> 00:23:36,540
[CLAIRE] You mentioned 30 years so I just want to like segue for anyone who's listening and doesn't

306
00:23:36,740 --> 00:23:43,100
realize it this year is the 30th anniversary of the founding of the Postgres open source project

307
00:23:43,490 --> 00:23:48,060
now you may have heard that the technology itself is going to be 40 years old and that's also true

308
00:23:48,560 --> 00:23:54,520
and it's not like a off by one error or a typo or something so 40 years for the tech 30 years for

309
00:23:54,540 --> 00:24:00,080
the open source project itself. And then I know that you're involved in organizing this year,

310
00:24:00,140 --> 00:24:05,720
the annual PGConf.dev, which is the annual Postgres Development Conference. It always happens in

311
00:24:06,020 --> 00:24:13,100
Canada. This is, I think, the third year since the conference kind of rebranded and changed its

312
00:24:13,660 --> 00:24:20,520
approach and vibe and all of that. It's happening in Vancouver in May. And I know I'm going

313
00:24:20,540 --> 00:24:26,700
to make sure to drop a link in the show notes to the conference t-shirt this year, which you might

314
00:24:26,700 --> 00:24:31,280
be thinking, wait a minute, we're talking about technology. Why does a t-shirt matter? But it's

315
00:24:31,370 --> 00:24:35,240
really cool because they made it celebratory in honor of the 30th birthday.

316
00:24:36,120 --> 00:24:41,340
[GWEN] The t-shirt and the stickers are the most important part of every conference and I'm

317
00:24:41,360 --> 00:24:48,480
going to die on this hill. I mean, you can listen to talks on YouTube and you learn a lot

318
00:24:48,480 --> 00:24:55,600
from them but the vibe of the conference the being there is something different and then going back

319
00:24:55,620 --> 00:25:02,740
home and you have a t-shirt and every time you sit in your closet or wear it, you remember

320
00:25:02,950 --> 00:25:04,900
all those interactions and the great vibe.

321
00:25:05,270 --> 00:25:14,100
And, you know, some days my Postgres conference t-shirts motivates me for showing up and kind

322
00:25:14,160 --> 00:25:16,700
of doing a better job for the community.

323
00:25:16,560 --> 00:25:21,240
[CLAIRE] Well, we're not doing video right now, but I do have on my PGConf New York City sweatshirt

324
00:25:21,460 --> 00:25:26,440
and underneath my PGConf.EU t-shirt from 2023 from, I think, Prague.

325
00:25:26,920 --> 00:25:28,600
So, yeah, I'm with you.

326
00:25:30,240 --> 00:25:38,880
We, I will say also that the hallway track at PGConf.dev, last year in Montreal in particular, was just amazing.

327
00:25:39,200 --> 00:25:41,060
I always thought you can't miss the sessions.

328
00:25:41,220 --> 00:25:42,300
You got to go to the talks.

329
00:25:42,860 --> 00:25:46,760
And I remember just sitting in the hallway talking to people for a couple hours straight.

330
00:25:46,980 --> 00:25:57,600
[GWEN] Yes, I definitely also missed a lot of sessions that I had to catch up with [With the video] because just the people who show up at those conferences are so amazing.

331
00:25:57,750 --> 00:26:02,680
You grab someone in the hallway and you talk to him about, I don't know, foreign data wrappers.

332
00:26:02,930 --> 00:26:06,720
And it turns out that this was the guy who created foreign data wrappers and he knows everything.

333
00:26:07,520 --> 00:26:11,660
And then you turn around and you talk to someone about scaling Postgres.

334
00:26:12,020 --> 00:26:16,860
And it's like, oh yeah, I work for ServiceNow and I have 200,000 Postgreses.

335
00:26:19,440 --> 00:26:22,080
It's just so amazing.

336
00:26:22,600 --> 00:26:27,600
I also wanted to mention a lot of my contribution to the community.

337
00:26:28,250 --> 00:26:33,680
It really started, so one of the Postgres experts that I learned a lot from is Julien,

338
00:26:34,010 --> 00:26:37,420
I think, Rouhaud would be his last name.

339
00:26:37,800 --> 00:26:39,700
[CLAIRE] Who works at Nile, right?

340
00:26:39,220 --> 00:26:42,620
[GWEN] Yeah, the best way to learn from people is to hire them.

341
00:26:43,220 --> 00:26:45,500
[CLAIRE] He's also a Postgres open source contributor.

342
00:26:45,800 --> 00:26:48,420
[GWEN] Yeah, he has HypoPG, which is amazing.

343
00:26:49,180 --> 00:26:51,320
[CLAIRE] And I know he listens to this podcast.

344
00:26:51,820 --> 00:26:52,220
[GWEN] Seriously?

345
00:26:52,000 --> 00:26:56,860
[CLAIRE] He has sent me his he's one of the people, you know, a lot of people listen to the show and don't.

346
00:26:58,040 --> 00:27:03,960
They don't think to reach out to the creator or the host or the team behind it, because why would they like?

347
00:27:04,540 --> 00:27:05,720
But anyway, Julien did.

348
00:27:05,830 --> 00:27:06,800
He sent me a note one day.

349
00:27:07,420 --> 00:27:09,160
It says he listens to it while he's in the car driving.

350
00:27:09,500 --> 00:27:10,280
And that was kind of cool.

351
00:27:11,160 --> 00:27:12,780
So you were saying Julien.

352
00:27:13,500 --> 00:27:17,880
[GWEN] Yes, so one day he told me, Gwen, you know, we're getting a lot out of the community.

353
00:27:18,340 --> 00:27:20,540
I think we should think about giving back.

354
00:27:21,280 --> 00:27:22,580
And I'm like, well, we're a startup.

355
00:27:22,860 --> 00:27:29,100
I mean, it's not like we can go and be a big sponsor and all the cool things Microsoft may be doing.

356
00:27:30,440 --> 00:27:34,140
But one thing I can do is just go and help out.

357
00:27:35,340 --> 00:27:41,000
So I grabbed Melanie at the conference and said, look, you're doing an amazing job.

358
00:27:41,160 --> 00:27:42,820
It's the best conference I've ever been at.

359
00:27:42,980 --> 00:27:43,440
How can I help?

360
00:27:44,340 --> 00:27:51,580
And to her credit, a year later, she's like, hey, can you help us with getting logos from some sponsors?

361
00:27:51,980 --> 00:27:58,160
It's always been a bit of, you know, not hard work, but you just have to send a lot of emails and be on top of it.

362
00:27:58,180 --> 00:28:00,380
And I'm like, sure, I can send emails and be on top of stuff.

363
00:28:01,059 --> 00:28:02,340
That's usually my thing.

364
00:28:04,059 --> 00:28:08,080
And then, you know, something that I learned, I think I heard it from Stacey.

365
00:28:08,880 --> 00:28:12,180
She said, if you do a good job at something, people will ask you for more.

366
00:28:13,180 --> 00:28:15,800
So this year I'm organizing a bit more.

367
00:28:17,180 --> 00:28:20,040
[CLAIRE] Yeah, and I know the team really appreciates it.

368
00:28:21,920 --> 00:28:42,640
And, I helped a little bit with social last year and this year I'm on the Tuesday planning committee, that Robert Haas is leading. So we just look at the submissions and speaking of which there's a CFP closed deadline coming up for the Tuesday and submission. So I'll make sure to include that in the show notes as well.

369
00:28:43,140 --> 00:28:48,600
But that organizing team is really knocking it out of the park.

370
00:28:49,080 --> 00:28:53,740
And a lot of the hackers and contributors will show up.

371
00:28:54,480 --> 00:28:57,240
And there's a lot of planning that happens for the next release.

372
00:28:57,900 --> 00:29:03,020
A lot of negotiation, a lot of discussion, trying to figure out if people are going to

373
00:29:03,020 --> 00:29:05,780
get the support they need to pull things off.

374
00:29:07,080 --> 00:29:11,140
So, okay, so we talked a bit about how you spun up on the technology of Postgres.

375
00:29:12,420 --> 00:29:14,500
And we'll share some of those tips in the show notes.

376
00:29:14,740 --> 00:29:17,360
But I skipped over all your years on NoSQL.

377
00:29:17,550 --> 00:29:20,660
And I guess what I'm curious about, we can go backwards and walk through them.

378
00:29:21,030 --> 00:29:29,660
But also, how has working on Oracle and working on various NoSQL databases influenced your work on Postgres?

379
00:29:30,360 --> 00:29:36,540
I'm just curious whether you approach problems differently than maybe someone who's worked on Postgres their entire career.

380
00:29:37,440 --> 00:29:41,720
How does that NoSQL experience inform how you think about things?

381
00:29:43,120 --> 00:29:49,600
[GWEN] I'm appreciative to Postgres and relational databases in particular, in general, just

382
00:29:49,740 --> 00:29:52,660
how much stuff they do for us.

383
00:29:54,640 --> 00:30:06,480
And what I mean is that it's, you know, when you are on NoSQL, there is no transaction isolation.

384
00:30:07,120 --> 00:30:13,140
You have to worry about what exactly are the guarantees and where they're going to fail.

385
00:30:13,240 --> 00:30:16,860
You have to be aware of a lot more when you're coding.

386
00:30:18,580 --> 00:30:25,460
And a lot of times the way I felt about it, and I know a lot of my teammates felt that way too,

387
00:30:26,100 --> 00:30:30,860
it's more like you have building blocks of a database and you kind of have to build your own.

388
00:30:31,500 --> 00:30:33,540
So let's say you have Kafka.

389
00:30:34,020 --> 00:30:38,100
Nice way for a database person to think about Kafka is a write-ahead log.

390
00:30:38,590 --> 00:30:41,800
You basically have one change after another, after another.

391
00:30:43,020 --> 00:30:48,620
And then you put maybe some kind of a key value store in front of it

392
00:30:48,620 --> 00:30:50,540
to kind of cache the latest value.

393
00:30:50,810 --> 00:30:54,480
So you have faster querying of those things.

394
00:30:54,610 --> 00:30:59,120
And then there are different ways to put SQL on top.

395
00:30:59,460 --> 00:31:01,800
So there is open source projects for that as well.

396
00:31:02,300 --> 00:31:10,380
So you kind of pick and choose different building blocks and you kind of end up building your own database in the process.

397
00:31:11,180 --> 00:31:20,380
And if you are a large company or you are very skilled distributed systems teams, there's a lot of benefits for this kind of disaggregation.

398
00:31:21,300 --> 00:31:25,800
And it does give you a lot of understanding on appreciation of the low level mechanisms.

399
00:31:26,520 --> 00:31:29,640
How does one build a transaction from building blocks?

400
00:31:29,960 --> 00:31:37,740
How does one handle consistency with a write-ahead log recovery, catching up when things fall behind?

401
00:31:38,300 --> 00:31:49,260
So caching, so you kind of get very good understanding of a lot of primitives that later served me very well as you go and work inside the database.

402
00:31:49,980 --> 00:32:11,340
And you also get a lot of appreciation for, you know, the communities that make it so that when you don't want to think about all those primitives, when you don't want to build your own database from scratch, when you just want to install something and have it just work with the expected guarantees, these things exist.

403
00:32:12,080 --> 00:32:18,160
And it's kind of nice that you have all those different options on how you want to run your production operations.

404
00:32:19,500 --> 00:32:23,600
[CLAIRE] Yeah, I think when we were exploring different titles for this episode,

405
00:32:25,170 --> 00:32:29,020
one of the ones you proposed was how Postgres helped you appreciate Codd.

406
00:32:30,780 --> 00:32:35,580
So I don't know if you want to explain to people who might not be familiar what Codd,

407
00:32:35,940 --> 00:32:38,700
Codd, stands for and how that connects.

408
00:32:39,480 --> 00:32:46,540
[GWEN] Yeah, so, Codd and I would say Jim Gray, those are the database pioneers, right?

409
00:32:46,600 --> 00:32:50,240
A lot of what defines a relational database, relational algebra.

410
00:32:51,210 --> 00:32:55,680
Things like foreign keys, the idea that you split things into tables

411
00:32:56,060 --> 00:32:58,020
so you don't have duplicate data.

412
00:32:58,090 --> 00:33:00,640
If you change things in one place, it's enough.

413
00:33:01,140 --> 00:33:02,840
You can efficiently query it.

414
00:33:03,900 --> 00:33:07,020
ACID is a very important primitive.

415
00:33:08,020 --> 00:33:15,000
All those things are basically what makes life easy for us as a developer.

416
00:33:15,700 --> 00:33:19,680
It tells us, hey, you don't have to do all this work.

417
00:33:19,680 --> 00:33:32,620
You don't have to figure out how to not duplicate data and how to get consistently correct information whenever you're querying and how readers don't block writers or they only block writers when they actually need to block writers.

418
00:33:33,180 --> 00:33:40,100
All those things are basically things that they figured out for us.

419
00:33:40,820 --> 00:33:44,160
So I don't have to figure it out again and again.

420
00:33:44,800 --> 00:33:47,520
And this has actually been kind of a major thing in my career.

421
00:33:48,160 --> 00:33:52,340
I am so pissed whenever I have to solve the same problem more than twice.

422
00:33:53,100 --> 00:33:56,060
It just, I feel it's morally offending.

423
00:33:57,670 --> 00:34:04,140
My family has, you know, German roots and wasting someone's time is like the height of

424
00:34:04,280 --> 00:34:07,380
disrespect was the way I was brought up.

425
00:34:07,900 --> 00:34:11,100
And I have no patience for databases who waste my time.

426
00:34:12,399 --> 00:34:18,520
And so, you know, I did a lot of consulting and you talk, you solve the problem and then

427
00:34:18,540 --> 00:34:21,879
you consult someone else and they have the exact same problem and you have to solve it

428
00:34:22,000 --> 00:34:22,120
again.

429
00:34:22,700 --> 00:34:23,800
And this is so annoying.

430
00:34:24,340 --> 00:34:29,919
So at some point you're like, we have to fix the database so nobody will ever run into a

431
00:34:30,179 --> 00:34:33,220
problem or that they will have better tools on how to resolve it themselves.

432
00:34:33,840 --> 00:34:36,280
So I don't have to go and solve it again and again.

433
00:34:37,500 --> 00:34:44,300
So yeah, a lot of the things I did was basically I ran into the same problem three times.

434
00:34:44,669 --> 00:34:52,159
Now I have to go work for a company or start a company that will solve this problem once and for all.

435
00:34:55,080 --> 00:35:01,880
[CLAIRE] You're reminding me and this isn't the first time I've remembered this out loud but I was talking

436
00:35:01,880 --> 00:35:08,800
to Simon Willison once and I was thanking him for his altruism with his Today I Learned blogs and

437
00:35:08,820 --> 00:35:14,900
all of his blogging where he shares his kind of, problems and solutions and things. And he's,

438
00:35:15,000 --> 00:35:20,440
Oh no, I don't do that for other people. I do that for me. I do that for future Simon.

439
00:35:20,940 --> 00:35:24,200
Because he doesn't like to have to solve the same problem twice either. So when,

440
00:35:24,380 --> 00:35:28,980
when he does figure it out, his blog is a way of documenting it and capturing it.

441
00:35:29,300 --> 00:35:31,260
[GWEN] And also finding it again in the future.

442
00:35:31,740 --> 00:35:34,260
One of the most annoying things is that I solved the problem

443
00:35:34,340 --> 00:35:35,880
and I don't remember how I solved it.

444
00:35:36,820 --> 00:35:43,640
[CLAIRE] Yeah, yeah, yeah. So, which actually brings us to the topic of blogging. So as I was

445
00:35:44,300 --> 00:35:49,880
researching, getting ready for today's episode, I found a quote from you online

446
00:35:50,500 --> 00:35:55,140
that said, blogging connected me to like-minded people. And through this network, I found work

447
00:35:55,340 --> 00:36:02,060
that I loved. You could say that blogging created my whole career. So, I, tell me more about

448
00:36:02,080 --> 00:36:06,440
that? Where did that quote come from? How did it happen?

449
00:36:06,820 --> 00:36:15,940
[GWEN] Yeah, so basically I went early in my career as a young database person working in HP at the time.

450
00:36:16,660 --> 00:36:19,200
I was by far the most junior.

451
00:36:19,700 --> 00:36:21,500
Let's say I had two, three years of experience.

452
00:36:21,980 --> 00:36:23,480
Everyone else around me had like 20.

453
00:36:25,200 --> 00:36:28,940
And obviously as the most junior person on the team, nobody ever listens to you.

454
00:36:30,080 --> 00:36:35,740
You think you have a clever solution for something, but everyone's like, no, no, let's do everything the old way.

455
00:36:36,400 --> 00:36:43,540
And so I, and you know, I already told you, I started my learning databases by reading people's blogs.

456
00:36:44,130 --> 00:36:52,660
So I was like, I know I'm going to go and write down all my ideas and maybe other people will read them and listen to me, even if nobody at work listens to me.

457
00:36:54,820 --> 00:37:03,320
And that's pretty much how I started writing and documenting.

458
00:37:03,380 --> 00:37:09,600
And very similar to what Simon said, you solve a problem and you

459
00:37:09,820 --> 00:37:14,600
write it, and the next time you run into the same problem, you Google it up and you find your own blog

460
00:37:14,760 --> 00:37:19,220
with explanation on how to solve the problem. And sometimes people show up and tell you, no,

461
00:37:19,340 --> 00:37:23,760
when you're solving it the right way, the wrong way, or this is a better way to solve it. Or,

462
00:37:24,260 --> 00:37:33,340
you know, I mean, adding an index is nice, but as you said, it's going to lock up your table.

463
00:37:33,360 --> 00:37:38,240
So you kind of learn from people, you learn a lot from the interaction.

464
00:37:39,120 --> 00:37:42,880
And back then, the social media, which was basically the blogosphere,

465
00:37:43,620 --> 00:37:45,040
it was such a friendly community.

466
00:37:45,270 --> 00:37:46,440
And everyone was helping.

467
00:37:46,620 --> 00:37:48,100
Everyone was answering questions.

468
00:37:48,540 --> 00:37:50,440
A bit maybe like the Postgres mailing list.

469
00:37:50,510 --> 00:37:52,860
Everyone is not there to score points.

470
00:37:53,440 --> 00:37:55,480
You're not going to market your way.

471
00:37:55,750 --> 00:38:00,140
You're not going to become a famous influencer

472
00:38:00,230 --> 00:38:02,760
and make a lot of sponsorship deals from that.

473
00:38:03,300 --> 00:38:06,160
People are there to technically help each other.

474
00:38:06,920 --> 00:38:09,840
And I appreciated it so much.

475
00:38:11,120 --> 00:38:17,400
And basically it was because I met all those people who also had blogs

476
00:38:17,740 --> 00:38:19,920
and they started talking about this conference.

477
00:38:20,180 --> 00:38:21,460
So I also went to this conference.

478
00:38:21,700 --> 00:38:23,100
And then you meet the people in person.

479
00:38:23,740 --> 00:38:27,620
And you can tell them, hey, I started this blog because nobody listens to me at work.

480
00:38:28,100 --> 00:38:29,940
And they can say, well, we're hiring.

481
00:38:30,240 --> 00:38:31,420
Do you want to work with us?

482
00:38:31,880 --> 00:38:35,300
And if they're really cool people, then I want to work with them.

483
00:38:35,540 --> 00:38:38,600
So I try to interview and maybe find my next job.

484
00:38:39,130 --> 00:38:41,720
Because everyone wants to work with people they really admire.

485
00:38:42,300 --> 00:38:44,960
And now I show up at those conferences.

486
00:38:45,090 --> 00:38:46,140
I want to hire people.

487
00:38:46,880 --> 00:38:51,920
And I hope to be a person that they admire enough that they will want to come and work

488
00:38:52,040 --> 00:38:52,220
at night.

489
00:38:54,580 --> 00:39:02,800
[CLAIRE] Got it. I take it that's the requisite plug for the fact that Nile is hiring and people should check out your website.

490
00:39:03,960 --> 00:39:15,080
Right. OK, so the other thing I discovered is that there was a blog you wrote, I don't know, sometime within the last couple of years, and you called it your most popular blog ever.

491
00:39:15,720 --> 00:39:18,180
And it was about transaction isolation in Postgres.

492
00:39:19,040 --> 00:39:22,780
And I just want to know, why is that your most popular blog?

493
00:39:23,700 --> 00:39:24,620
[GWEN] I don't know.

494
00:39:25,020 --> 00:39:27,980
Ask the people who all went and read it.

495
00:39:28,120 --> 00:39:29,520
I have absolutely no idea.

496
00:39:30,340 --> 00:39:34,180
I mean, I knew that transaction isolation is a tricky topic.

497
00:39:34,820 --> 00:39:38,640
One of the reasons I wrote the blog is that I always get confused.

498
00:39:39,120 --> 00:39:45,120
There's so many different scenarios, different interleavings, the vacuum, MVCC.

499
00:39:45,800 --> 00:39:47,720
There is just so many moving parts.

500
00:39:48,720 --> 00:39:55,380
So I, yeah, I had to write it down just to make it clear in my own head.

501
00:39:56,080 --> 00:40:02,640
And apparently I wrote it down in a way that maybe other people also appreciated and made it clear in their head.

502
00:40:02,980 --> 00:40:06,820
And maybe they shared it with some of their friends and it became popular.

503
00:40:07,520 --> 00:40:13,100
But it was definitely, I didn't expect it to be that popular, to be honest.

504
00:40:13,760 --> 00:40:18,160
Especially since I'm not the first person to explain how transaction isolation works.

505
00:40:18,500 --> 00:40:23,060
I mean, because it's confusing, it is quite a popular topic in general.

506
00:40:23,160 --> 00:40:39,320
You see, you know, I'm going to be in PGConf and I'm sure I think there is like three different talks about vacuum and how it's going to evolve in the future and how to use it now and all those things, because it's something that everyone really, really cares about.

507
00:40:42,680 --> 00:40:45,680
[CLAIRE] So you just said you're going to be at PGConf.dev, is that right?

508
00:40:46,720 --> 00:40:49,760
[GWEN] You cannot really be on the organizing committee and not be there, right?

509
00:40:50,140 --> 00:40:51,700
[CLAIRE] Okay, yeah, I guess that makes sense.

510
00:40:52,130 --> 00:40:52,480
Okay, cool.

511
00:40:52,560 --> 00:41:02,040
So because I do know you work for a startup, so it's not like you're going to all the Postgres conferences that happen around the planet?

512
00:41:02,500 --> 00:41:03,860
[GWEN] No I wish I could.

513
00:41:02,820 --> 00:41:05,800
[CLAIRE] Got it.

514
00:41:05,880 --> 00:41:09,220
Well, then I will look forward to seeing you in person in Vancouver.

515
00:41:09,740 --> 00:41:18,340
Okay, so I'm still feeling badly about the fact that we skipped over your 10 years of non-relational data systems between Oracle and Postgres.

516
00:41:18,940 --> 00:41:32,640
Is there more to talk about in that space in terms of maybe lessons you learned or failures that have stayed with you and informed how you do your work today?

517
00:41:33,740 --> 00:41:44,640
And were you doing product work at that time or were you still doing either consulting or managing servers as a DBA?

518
00:41:48,380 --> 00:41:49,780
[GWEN] That's funny, I did everything. It was about 10 years. It included product,

519
00:41:49,900 --> 00:41:51,160
it included services.

520
00:41:51,490 --> 00:41:52,540
It included engineering.

521
00:41:52,610 --> 00:41:54,640
It included managing an engineering team.

522
00:41:56,080 --> 00:42:00,440
So it definitely included bits of everything, which prepares you very well to the job of a

523
00:42:00,630 --> 00:42:03,120
founder, which literally means doing bits of everything.

524
00:42:05,440 --> 00:42:12,740
And I think if I had to just summarize in short, the biggest thing I learned would be

525
00:42:13,240 --> 00:42:15,060
to use the right tool for the job.

526
00:42:15,740 --> 00:42:25,780
And the right tool to a very massive degree would be the tools that the people you work with understand really well.

527
00:42:26,640 --> 00:42:31,860
It's not the only consideration, but it has to be pretty high up there.

528
00:42:32,480 --> 00:42:42,940
Among other reasons is that if you don't understand something very well, then you are likely prey to marketing and salespeople.

529
00:42:43,800 --> 00:42:47,720
They will show up and tell you things like,

530
00:42:48,510 --> 00:42:50,460
our database has zero latency

531
00:42:51,120 --> 00:42:54,240
and you can do active, active replication

532
00:42:54,710 --> 00:42:56,380
with no conflict ever.

533
00:42:56,570 --> 00:42:57,380
And it's all immediate.

534
00:42:57,750 --> 00:43:01,040
And if you don't know why this cannot possibly be true,

535
00:43:01,960 --> 00:43:05,360
then you are going to make really bad choices.

536
00:43:08,520 --> 00:43:08,820
[CLAIRE] Got it

537
00:43:11,460 --> 00:43:12,680
and in that 10 years

538
00:43:12,960 --> 00:43:13,820
where were you working

539
00:43:14,760 --> 00:43:15,860
which was it?

540
00:43:16,500 --> 00:43:22,300
[GWEN] Yeah so it was part of it was my work at oh now you're making me say the companies that we're

541
00:43:22,300 --> 00:43:30,800
both struggling with. It was Pythian for I think about a year or two and then Cloudera

542
00:43:31,620 --> 00:43:32,860
for two years

543
00:43:33,600 --> 00:43:35,140
and then it was

544
00:43:35,340 --> 00:43:36,740
Confluent for seven years.

545
00:43:37,980 --> 00:43:38,680
[CLAIRE] Okay, got it.

546
00:43:42,140 --> 00:43:48,080
You just had such a varied career in terms of your technologies, but it's all

547
00:43:48,120 --> 00:43:48,520
in databases.

548
00:43:49,520 --> 00:43:55,200
So, I guess that one person, we have to make sure to get his name spelled properly,

549
00:43:55,420 --> 00:43:56,680
so I can add it in the show notes.

550
00:43:57,010 --> 00:44:00,780
Who was the person who knew everything about how the data blocks were stored on disk while

551
00:44:00,780 --> 00:44:01,300
you were at university.

552
00:44:01,830 --> 00:44:06,820
I want to make sure to include it, but yeah, he did influence you and your career path.

553
00:44:06,560 --> 00:44:08,820
[GWEN] Very very much so yes.

554
00:44:10,120 --> 00:44:15,980
[CLAIRE] Now the other thing I found online is that you sometimes, I don't know if you did

555
00:44:16,100 --> 00:44:19,160
this a lot, but I found a riddle that you posted.

556
00:44:20,840 --> 00:44:26,060
[GWEN] I saw you liked it last night and I was like, this was, how did you even find it?

557
00:44:27,460 --> 00:44:31,800
[CLAIRE] I was just researching and you know how it is when you're researching and searching.

558
00:44:32,040 --> 00:44:33,680
You just run into all sorts of stuff.

559
00:44:34,180 --> 00:44:39,680
So, the riddle I ran across and maybe you post a lot of riddles about Postgres.

560
00:44:39,880 --> 00:44:45,460
I'm not sure, but you posted this question of what happens when you add and remove a column

561
00:44:45,950 --> 00:44:48,020
from a table in Postgres 2000 times.

562
00:44:49,060 --> 00:44:53,880
And a lot of people like responded and resonated and were curious about that fact.

563
00:44:55,460 --> 00:44:56,620
[GWEN] Yeah, it's kind of silly, right?

564
00:44:56,840 --> 00:45:04,300
I mean, you don't think that a lot of people need to drop and add a column 1,600 times.

565
00:45:06,220 --> 00:45:10,700
Yeah, for me, a lot of what I do with databases is driven by my curiosity.

566
00:45:11,460 --> 00:45:15,340
I just, you know, questions pop into my head and I want to know the answer.

567
00:45:15,460 --> 00:45:21,180
So I really like doing a quick test and just try and find out.

568
00:45:21,360 --> 00:45:25,380
And then if the test is unexpected, it turns into a riddle.

569
00:45:26,100 --> 00:45:29,380
And I go and do a deep dive to find out.

570
00:45:30,560 --> 00:45:36,680
Because if I do a test and I get a result I didn't expect, it means I did not understand the system correctly, right?

571
00:45:37,300 --> 00:45:39,220
This is the rule of benchmarks.

572
00:45:39,540 --> 00:45:42,980
If you do a benchmark and you get the results that you expect, you're doing marketing.

573
00:45:43,040 --> 00:45:46,440
If you get something unexpected, you learn something.

574
00:45:47,920 --> 00:45:48,480
This is the key.

575
00:45:48,480 --> 00:45:50,160
You have to figure out something.

576
00:45:51,000 --> 00:45:53,480
You're doing tests to understand your system better.

577
00:45:54,180 --> 00:45:59,120
So in this scenario, I learned quite a lot about how Postgres actually deletes columns.

578
00:45:59,780 --> 00:46:01,080
And why is it so fast?

579
00:46:01,480 --> 00:46:04,040
Because, spoiler alert, it doesn't delete the columns.

580
00:46:04,500 --> 00:46:06,140
They keep hanging around there.

581
00:46:06,180 --> 00:46:07,320
They're just kind of hidden.

582
00:46:08,799 --> 00:46:11,900
And yeah, that was definitely time well spent.

583
00:46:12,000 --> 00:46:19,040
I learned something, I improved my skills, and I found out that a lot of people like learning things and improving their skills.

584
00:46:19,980 --> 00:46:28,720
It's something that I feel like more people should be doing is just to do a small experiment, especially when there is an argument.

585
00:46:29,040 --> 00:46:30,680
This is something I learned while consulting.

586
00:46:31,540 --> 00:46:32,940
I cannot argue with a customer.

587
00:46:33,850 --> 00:46:36,200
If I am in the argument, I already lost.

588
00:46:36,340 --> 00:46:38,780
This is the second most important rule of consulting.

589
00:46:38,840 --> 00:46:41,600
If you're arguing with your customer, you already lost.

590
00:46:42,080 --> 00:46:44,180
And it doesn't matter what is the outcome.

591
00:46:45,040 --> 00:46:51,640
But if I can join them, I can do an experiment with them, and then we will find out if it's

592
00:46:51,820 --> 00:46:54,580
that way or the other way, then it's a win-win.

593
00:46:55,000 --> 00:46:55,660
I learned something.

594
00:46:56,020 --> 00:46:56,600
He learned something.

595
00:46:56,940 --> 00:46:59,060
We're now collaborating rather than arguing.

596
00:46:59,720 --> 00:47:00,360
It's fantastic.

597
00:47:01,620 --> 00:47:07,200
So yeah, I feel like whenever a question pops into your head, you should do an experiment.

598
00:47:07,560 --> 00:47:12,600
If it's unexpected, you have to learn what you didn't know that caused an unexpected result.

599
00:47:17,080 --> 00:47:22,920
And then you have something you can publish in your blog or on social media, or you have

600
00:47:23,010 --> 00:47:24,180
something to share with the world.

601
00:47:24,270 --> 00:47:29,320
If it's a big thing you discovered, you submit a talk to your favorite Postgres conference,

602
00:47:30,280 --> 00:47:32,200
and then everything is even better.

603
00:47:33,280 --> 00:47:41,800
[CLAIRE] So, in terms of sharing, you're touching on social media, and I know prior to Microsoft

604
00:47:42,160 --> 00:47:50,220
acquiring Citus, I credit Twitter with contributing to my landing the job at Citus Data.

605
00:47:50,940 --> 00:48:00,140
Just because I was connected to people at RedMonk, Steve O'Grady, and then he connected me to Craig Kerstiens, who then I was following on Twitter.

606
00:48:00,640 --> 00:48:05,600
And, you know, Twitter was part of all of these relationships.

607
00:48:06,900 --> 00:48:13,100
And since the world is fragmented in social media, I'm actually not sure where to look.

608
00:48:13,480 --> 00:48:17,480
I have accounts on Mastodon and Bluesky and Twitter and LinkedIn.

609
00:48:17,560 --> 00:48:27,120
And I'm just curious, as you share these things, these riddles, these blogs, where are you finding the most engagement with people in the Postgres world?

610
00:48:27,980 --> 00:48:30,740
[GWEN] Honestly, the last year has been a bit depressing.

611
00:48:31,360 --> 00:48:36,380
I'm posting like you, on Twitter, on LinkedIn, some on Bluesky.

612
00:48:37,560 --> 00:48:43,980
But I feel like there was something about the blogosphere in early 2010s.

613
00:48:43,980 --> 00:48:51,980
And then later, the ways that a lot of technology, Twitter kind of, or X kind of became the technology hub.

614
00:48:52,760 --> 00:48:54,500
And it's not quite there yet.

615
00:48:54,560 --> 00:49:01,400
Between seeing more of the algorithms and you see from your friends and a lot of really good

616
00:49:01,600 --> 00:49:09,760
people just kind of getting disgusted and leaving it's just yeah I haven't found my new place and

617
00:49:09,940 --> 00:49:16,140
you know I keep joining discords and I hope that you know by joining enough discords I will find my

618
00:49:16,360 --> 00:49:22,620
people I will find the place where I can share and learn and grow with people but at this point

619
00:49:22,640 --> 00:49:24,920
nothing really sticks for me.

620
00:49:25,540 --> 00:49:25,920
I don't know.

621
00:49:26,060 --> 00:49:26,640
What about you?

622
00:49:26,650 --> 00:49:28,360
Do you find anything that I'm missing?

623
00:49:29,560 --> 00:49:36,340
[CLAIRE] I mean, I think I'm getting the most engagement on LinkedIn these days, but Tristan Partin just

624
00:49:36,520 --> 00:49:43,479
mentioned on the Discord, the live chat for this recording, that there are a lot of Postgres people

625
00:49:43,480 --> 00:49:49,780
on Mastodon. And I do think that's true. And I think Mastodon though, it's very temporal.

626
00:49:50,500 --> 00:49:57,320
And so you have to be on there enough to like catch people at their times of day when they're

627
00:49:57,440 --> 00:50:02,740
paying attention. So the way that I'm using Mastodon, which is kind of once in a blue moon,

628
00:50:03,120 --> 00:50:08,099
that's not really working. So I think to connect to some Postgres people, I probably have to be more

629
00:50:08,120 --> 00:50:16,500
are present. But LinkedIn is the best I've got right now to reach people. It's just so different

630
00:50:16,760 --> 00:50:22,140
than the way it was a couple of years ago. So we're all adjusting, I suppose. There is

631
00:50:22,210 --> 00:50:27,900
a Postgres hackers Discord now, which I assume you have joined, right?

632
00:50:26,700 --> 00:50:34,380
[GWEN] Yes, yeah. It is a really nice place and yeah, it has really nice people. It's very focused

633
00:50:34,480 --> 00:50:42,680
though on people doing work inside Postgres. So it never seemed like the right place for stuff like

634
00:50:42,900 --> 00:50:47,500
what happens when you add and remove a column for Postgres because everyone there already knows

635
00:50:47,520 --> 00:50:50,980
exactly what happens some of them even wrote the things that makes it happen.

636
00:50:51,900 --> 00:50:57,760
[CLAIRE] Yeah, but I do think that if you are an aspiring Postgres hacker, someone who wants to contribute

637
00:50:57,810 --> 00:51:02,880
to the open source project, but is maybe new to it, the monthly hacking workshops that are

638
00:51:03,240 --> 00:51:08,640
effectively hosted on the new Postgres hackers Discord. And when I say new, we're coming up on

639
00:51:08,710 --> 00:51:14,620
two years. So it's not that new anymore. But I think it's a great place to learn.

640
00:51:10,580 --> 00:51:10,800
[GWEN] Yes

641
00:51:14,160 --> 00:51:14,480
totally.

642
00:51:15,170 --> 00:51:17,120
[CLAIRE] It complements the mailing list.

643
00:51:17,380 --> 00:51:20,220
[GWEN] And you can ask questions and you get more real-time answers.

644
00:51:21,200 --> 00:51:26,940
I also want to point out Andrey Borodin had a series on hacking Postgres.

645
00:51:27,300 --> 00:51:32,500
He just shows how he does different things with his browser and he puts it on YouTube.

646
00:51:33,240 --> 00:51:36,320
And I found it a good place to learn internals as well.

647
00:51:38,280 --> 00:51:46,000
[CLAIRE] I know that he did a series of hacker trainings at a previous PGConf.dev as well.

648
00:51:46,080 --> 00:51:47,520
Do you know if he's doing it again this year?

649
00:51:48,780 --> 00:51:56,560
[GWEN] I remember something about the workshop, but I don't know if it's that.

650
00:51:57,140 --> 00:52:02,800
I know one of the sessions I'm really looking forward to is the real-time patch feedback session.

651
00:52:04,000 --> 00:52:11,940
Robert has got together some of the top committers to basically give people feedback on their suggestions, patches, etc.

652
00:52:12,560 --> 00:52:16,120
It looks like it can be a very exciting session.

653
00:52:17,280 --> 00:52:19,000
[CLAIRE] Yeah, that is happening on Tuesday.

654
00:52:20,720 --> 00:52:23,500
And what's cool, this year, Tuesday is very, very different.

655
00:52:23,760 --> 00:52:30,640
So in past years, Tuesday was full of half day workshops and people, a lot of people

656
00:52:30,840 --> 00:52:33,660
felt like, well, I don't need to show up at PGConf.dev until the Wednesday.

657
00:52:34,240 --> 00:52:35,960
Wednesday and Thursday are full conference days.

658
00:52:36,220 --> 00:52:37,740
Friday is the un-conference, right?

659
00:52:37,860 --> 00:52:42,620
Which is where the schedule gets created in the morning of, you know, by virtue of voting

660
00:52:42,800 --> 00:52:43,120
and everything.

661
00:52:44,480 --> 00:52:47,480
But yeah, the real time patch idea evaluation is happening on Tuesday.

662
00:52:47,720 --> 00:53:05,440
And shout out to, let's see, both me and Greg Burd were facilitating another panel on Tuesday called, which the idea I think was Melanie Plageman, but Unexpected Successes and Epic Failures by Postgres Committers.

663
00:53:05,640 --> 00:53:11,480
And it's a roundtable with Alvaro Herrera, Daniel Gustafsson, Peter Eisentrout, and Thomas Munro.

664
00:53:12,660 --> 00:53:15,240
So successes as well as epic failures.

665
00:53:15,740 --> 00:53:16,140
[GWEN] I would.

666
00:53:16,160 --> 00:53:22,360
I would so much love to hear it. Isn't the best story kind of how did things go terribly

667
00:53:22,620 --> 00:53:30,300
wrong? There was also the io_uring retrospective last PGConf, which also made for a very good

668
00:53:30,900 --> 00:53:31,400
conference talk.

669
00:53:32,980 --> 00:53:37,320
[CLAIRE] Yeah I think when you think about patterns of conference talks the learn from my failure

670
00:53:37,900 --> 00:53:43,640
is always one of the most popular patterns and I don't know why it is psychologically.

671
00:53:44,060 --> 00:53:48,960
Are we all just, do we get glee out of seeing, hearing about someone else's failure?

672
00:53:49,110 --> 00:53:50,000
I don't think that's it.

673
00:53:50,460 --> 00:53:55,180
I think it's that there's an appreciation for someone being vulnerable and being able

674
00:53:55,230 --> 00:53:58,120
to make themselves vulnerable, share what went wrong.

675
00:53:58,590 --> 00:54:02,960
And you can self-identify because stuff goes wrong all the time for all of us.

676
00:54:03,020 --> 00:54:06,160
[GWEN] I think failures also make for better lessons.

677
00:54:06,770 --> 00:54:07,320
There's this,

678
00:54:07,760 --> 00:54:11,880
it's the age of lesson of like the heroic struggle, right?

679
00:54:12,140 --> 00:54:14,800
Every good saga has this heroic struggle.

680
00:54:15,580 --> 00:54:18,440
And I think like, as if things,

681
00:54:18,630 --> 00:54:21,360
if you just say, okay, I did this, this, this,

682
00:54:21,360 --> 00:54:21,920
and it succeeded.

683
00:54:23,280 --> 00:54:24,380
I didn't learn that much.

684
00:54:24,470 --> 00:54:26,240
If I said I tried this, it didn't work.

685
00:54:26,330 --> 00:54:28,880
And then I had to look into that and that didn't work.

686
00:54:29,600 --> 00:54:31,520
You just, you have so many more lessons.

687
00:54:33,340 --> 00:54:40,460
[CLAIRE] I'm looking at the Tuesday schedule right now, and there's an onboarding new community members to Postgres.

688
00:54:41,220 --> 00:54:45,160
Bruce is giving a talk, what's missing in Postgres, which I think is cool too.

689
00:54:45,610 --> 00:54:46,320
Similar to failure.

690
00:54:46,430 --> 00:54:50,700
It's like what people like to figure out what's missing, what's wrong, what could be added.

691
00:54:51,680 --> 00:54:57,300
[GWEN] There is even a talk from a MySQL guy on what Postgres should learn. [Ooh, okay.]

692
00:54:59,380 --> 00:55:00,320
It's going to be spicy.

693
00:55:00,330 --> 00:55:02,580
I think this PGConf is going to be very spicy.

694
00:55:13,000 --> 00:55:19,660
[CLAIRE] Okay. Spicy is good. Okay. So I want to make sure that we keep the promise of the episode title. How I went from Oracle to Postgres with a big NoSQL detour. Is there something I was

695
00:55:19,800 --> 00:55:25,400
supposed to ask you about that big NoSQL detour? Or I mean, at the end of the day,

696
00:55:25,460 --> 00:55:30,580
I'm just happy you're in Postgres now. I'm happy you're at Nile. I'm happy you're contributing to

697
00:55:30,580 --> 00:55:46,880
the community. But for your journey.

698
00:55:36,280 --> 00:55:38,240
[GWEN] I feel like we covered it quite well.

699
00:55:38,780 --> 00:55:40,140
We did lessons learned.

700
00:55:40,420 --> 00:55:42,000
We did what I appreciate.

701
00:55:42,480 --> 00:55:45,360
I think it's...

702
00:55:45,500 --> 00:55:48,500
[CLAIRE] Okay. We didn't talk about 30 days of 30 inks though.

703
00:55:48,560 --> 00:55:50,300
[GWEN] How did we miss that?

704
00:55:49,380 --> 00:55:53,920
[CLAIRE] Okay. What in the world is this? I learned about it about five minutes before we started this

705
00:55:53,940 --> 00:56:01,540
episode. I've heard of like writing November or like no, no shave November. Like I've heard of

706
00:56:01,630 --> 00:56:07,780
other things, 30 day, habits that people form. What in the world is 30 days of 30 inks?

707
00:56:08,280 --> 00:56:14,440
[GWEN] Okay so you have to first understand that when I am not a technology fanatic.

708
00:56:14,500 --> 00:56:23,000
I am very old school and I like stationery and I especially like fountain pens and the thing with

709
00:56:23,320 --> 00:56:29,700
fountain pens is that you can fill a fountain pen with any ink you want you it's not like you buy a

710
00:56:29,880 --> 00:56:37,040
pen and then it comes with one ink and you're stuck with it and so you can buy a lot of inks in many

711
00:56:37,100 --> 00:56:44,520
many colors and with shimmer and glitter and all kinds of stuff and I have a collection of 160 inks. [One six zero.]

712
00:56:48,700 --> 00:56:57,160
160 and in April which has 30 days I decided to enjoy my collection by using a different ink color

713
00:56:57,480 --> 00:57:06,020
every single day so I start my day by drinking my espresso and then filling my fountain pen with the

714
00:57:06,040 --> 00:57:10,880
ink of the day and then I write with that ink and pen for the rest of the day.

715
00:57:11,860 --> 00:57:12,560
[CLAIRE] That's very cool.

716
00:57:13,320 --> 00:57:22,080
You know, I read somewhere once that there's something about pen and paper and processing of information with pen and paper.

717
00:57:22,700 --> 00:57:25,700
Is that something you've studied or can teach me more about?

718
00:57:26,940 --> 00:57:33,420
[GWEN] I haven't studied it, but that's absolutely how my brain works. So if I do a conference talk,

719
00:57:33,540 --> 00:57:38,960
I will sketch out every single slide on paper before I even open PowerPoint.

720
00:57:39,640 --> 00:57:44,040
If I am trying to wrap my head around Postgres architecture,

721
00:57:44,500 --> 00:57:49,840
I will draw a lot of boxes and put function names and file names in different boxes

722
00:57:50,480 --> 00:57:52,580
so I can kind of know how to navigate.

723
00:57:53,320 --> 00:57:57,540
If I need to solve my own architecture and write code.

724
00:57:57,680 --> 00:58:04,700
I also, before I even open my LLM, I draw boxes and kind of get my head around how I

725
00:58:04,900 --> 00:58:05,420
want it to look.

726
00:58:06,120 --> 00:58:12,780
And then I can do a much better job of writing the code, instructing an LLM to write the code,

727
00:58:13,380 --> 00:58:16,660
review the code later because I know what is supposed to happen.

728
00:58:16,770 --> 00:58:18,500
I have this nice diagram right there.

729
00:58:19,060 --> 00:58:22,080
So yeah, I'm very much a pen and paper kind of person.

730
00:58:24,940 --> 00:58:29,720
[CLAIRE] Yeah, when I'm stuck, I actually can think pretty well keyboard in hand.

731
00:58:29,830 --> 00:58:32,020
I learned to type at a very young age.

732
00:58:32,200 --> 00:58:35,960
And so it's natural for me and I type very fast.

733
00:58:36,580 --> 00:58:41,560
But certainly if there's diagrams involved or pictures, I'm not good at using a keyboard

734
00:58:41,780 --> 00:58:42,740
to create diagrams.

735
00:58:43,110 --> 00:58:43,800
Other people are.

736
00:58:44,000 --> 00:58:44,300
I'm not.

737
00:58:44,720 --> 00:58:45,600
I don't use Visio.

738
00:58:46,160 --> 00:58:48,160
And that's when I have to get pen and paper out.

739
00:58:48,980 --> 00:58:54,660
Or if I'm stuck, if I really just can't, I have a writer's block or a creator's

740
00:58:54,820 --> 00:58:57,280
block, the only way out is pen and paper.

741
00:58:57,760 --> 00:59:00,000
[GWEN] Yeah it just uses a different part of your brain.

742
00:59:01,940 --> 00:59:07,300
[CLAIRE] I am looking at Jeremy Schneider's Postgres happiness hints right now.

743
00:59:09,020 --> 00:59:09,420
Let's see.

744
00:59:09,660 --> 00:59:13,160
Checksums, huge pages enabled, updates and upgrades, logging.

745
00:59:13,500 --> 00:59:14,240
These are the sections.

746
00:59:14,960 --> 00:59:21,840
So he has created six different categories, if you will, of these happiness hints, which

747
00:59:21,840 --> 00:59:27,400
I think is a great name for tips and far more memorable, far more likely to be like rediscovered

748
00:59:27,400 --> 00:59:28,860
or easy to find on search results.

749
00:59:29,100 --> 00:59:29,560
You know what I mean?

750
00:59:30,780 --> 00:59:34,080
So, checksums and huge pages, updates and upgrades, logging.

751
00:59:35,050 --> 00:59:38,260
Then there's multiple physical data centers is the fourth category.

752
00:59:39,200 --> 00:59:40,540
There's an alarms section.

753
00:59:41,140 --> 00:59:42,140
This is really cool.

754
00:59:42,930 --> 00:59:43,520
I like it.

755
00:59:44,520 --> 00:59:48,600
And so you basically went through and made sure you understood each and every one of these.

756
00:59:52,140 --> 00:59:53,820
[GWEN] I started by just following them.

757
00:59:55,380 --> 00:59:59,860
And then actually my co-founder pointed, I don't even remember which one, but he pointed

758
00:59:59,960 --> 01:00:01,440
at one of them and said, I don't buy it.

759
01:00:01,650 --> 01:00:02,900
I don't believe in that limit.

760
01:00:04,120 --> 01:00:09,380
So obviously the next thing is, because one thing the happiness hints don't tell you is

761
01:00:09,620 --> 01:00:13,240
what will break if you pass any of the limits, right?

762
01:00:13,760 --> 01:00:16,440
They just tell you don't, but they don't tell you what happens if you do.

763
01:00:16,900 --> 01:00:18,840
And as I mentioned, I'm a very curious person.

764
01:00:19,740 --> 01:00:27,720
So yes, next thing to do is to, what happens if you have a table above a certain size?

765
01:00:28,280 --> 01:00:29,900
What happens if you try to create an index?

766
01:00:30,140 --> 01:00:31,600
What happens if you try to dump it?

767
01:00:31,860 --> 01:00:34,600
What happens if you try to make a large update?

768
01:00:35,000 --> 01:00:36,320
How long does it actually take?

769
01:00:36,580 --> 01:00:37,680
How good is the optimizer?

770
01:00:37,960 --> 01:00:38,940
How accurate it is?

771
01:00:39,540 --> 01:00:44,300
What happens if I have 50,000 schemas in the same database?

772
01:00:45,020 --> 01:00:49,520
It turns out that even if they're all empty, PG dump can take hours.

773
01:00:51,860 --> 01:01:00,260
So you kind of run into, okay, now even if I decide not to listen to one of the hints, I know what to expect.

774
01:01:00,780 --> 01:01:04,260
It's not like I'm just following blindly.

775
01:01:04,400 --> 01:01:05,920
I know what trade-offs I'm making.

776
01:01:06,440 --> 01:01:08,000
And that's what engineering is all about.

777
01:01:08,260 --> 01:01:10,280
You're making the right trade-offs again and again.

778
01:01:12,760 --> 01:01:17,640
[CLAIRE] I mean, it's interesting, even in the work that I do, and I, you know, spent the first 16 years of

779
01:01:17,720 --> 01:01:23,900
my career in engineering, mostly in the kernel group, but now I do community work, right? And,

780
01:01:24,520 --> 01:01:29,240
but it's all about trade-offs too. Like every day, there's decisions and choices that we have. [Yes. Yes.]

781
01:01:29,260 --> 01:01:35,500
To make and trying to figure out, well, by what criteria are we going to make this trade-off? What

782
01:01:35,760 --> 01:01:42,620
criteria matters the most? I actually am a big hater of pros and cons lists because I find them

783
01:01:42,660 --> 01:01:47,040
to be very misleading, right? Because you can list the pros and you can list the cons, but you might

784
01:01:47,240 --> 01:01:53,980
be missing the most important criteria. [So true.] So I always structure my trade-offs as a matrix where it's like

785
01:01:54,000 --> 01:01:59,860
a report card in school and every row is like whatever the criteria is that we're assessing.

786
01:02:00,520 --> 01:02:07,000
And I try to look at my choices, my trade-offs by those things. And I draw an empty matrix first,

787
01:02:07,120 --> 01:02:11,620
where I just focus on, do I have all the right items in that criteria column?

788
01:02:10,740 --> 01:02:12,300
[GWEN] That's such good advice.

789
01:02:12,690 --> 01:02:17,600
I mean, you get the criteria right, and you're much more likely to make the right choice, essentially.

790
01:02:18,620 --> 01:02:24,300
[CLAIRE] And then my next trick is after the decision is made, people are going to criticize it,

791
01:02:24,580 --> 01:02:27,700
disagree, dislike it, try to undermine it, whatever, whatever.

792
01:02:28,260 --> 01:02:35,440
And so I always share that decision matrix like internally so that people can see why.

793
01:02:35,700 --> 01:02:37,020
Oh, oh, I get it.

794
01:02:37,120 --> 01:02:39,040
Oh, I hadn't thought about that aspect of it.

795
01:02:39,180 --> 01:02:41,000
And it gets rid of some of the churn.

796
01:02:41,460 --> 01:02:42,300
Not all, but some.

797
01:02:45,140 --> 01:02:47,340
I am so glad that you joined us today.

798
01:02:48,600 --> 01:02:53,740
Before we leave though are there more riddles can I go hunting online to find more of these

799
01:02:54,020 --> 01:02:58,420
riddles or was that just a one-off that I happened to discover last night?

800
01:02:58,640 --> 01:03:02,140
[GWEN] It's probably not the only one, but I don't do them super often.

801
01:03:03,300 --> 01:03:07,040
It's, yeah, it's an inspiration thing.

802
01:03:08,040 --> 01:03:14,200
[CLAIRE] One of the things that you mentioned Postgres FM earlier one of the co-founders of the Postgres FM

803
01:03:14,220 --> 01:03:20,520
podcast is Michael Christofides, who is a fabulous human being. And he's been doing Postgres puns

804
01:03:20,640 --> 01:03:31,380
lately. In the worst, nerdiest way.

805
01:03:21,460 --> 01:03:23,980
[GWEN] No it's hilarious in the worst

806
01:03:24,380 --> 01:03:26,980
nerdiest way possible but it cracks me up.

807
01:03:31,620 --> 01:03:37,720
[CLAIRE] And it's a little embarrassing that I get so much enjoyment out of them. I don't know why. What is it about puns that just pull people in? Even if they make

808
01:03:37,740 --> 01:03:57,360
you groan inside. They're still cool.

809
01:03:40,820 --> 01:03:46,280
[GWEN] Do you know where we store all our bad database jokes? [Where?] In the database. [Thank you for that.]

810
01:03:49,750 --> 01:03:53,500
Sorry, I think I'll now see myself out.

811
01:03:57,640 --> 01:04:02,040
[CLAIRE] Well, we covered some really interesting ground today. I'm so glad that you've joined us for today's podcast.

812
01:04:02,610 --> 01:04:03,520
Thank you so much, Gwen.

813
01:04:04,620 --> 01:04:06,200
[GWEN] Thank you so much for having me.

814
01:04:06,450 --> 01:04:07,720
It was a really pleasure.

815
01:04:08,740 --> 01:04:13,860
[CLAIRE] Now for those of you who are listening, if you like today's episode and you want to hear more

816
01:04:13,950 --> 01:04:20,080
of these Talking Postgres shows, you should subscribe on Apple or Spotify, YouTube or wherever

817
01:04:20,110 --> 01:04:26,580
you get your podcasts. And please tell your friends because word of mouth is gold in the podcast

818
01:04:26,770 --> 01:04:33,580
world. People are far more likely to enjoy and discover a show that a friend of theirs has recommended

819
01:04:33,600 --> 01:04:39,140
to them. And if you leave a review, even more people will discover the podcast. You can get to

820
01:04:39,140 --> 01:04:45,720
all the past episodes and get links to subscribe at TalkingPostgres.com. And transcripts are included

821
01:04:45,980 --> 01:04:52,040
on those episode pages on TalkingPostgres.com too. And we do a good job to try to make sure that

822
01:04:52,280 --> 01:04:57,180
the transcripts are useful. I know a couple of people who don't listen to these shows, but they

823
01:04:57,220 --> 01:05:02,520
do read the transcripts religiously. A big thank you to everybody who joined the live recording and

824
01:05:02,540 --> 01:05:04,300
participated in the text chat on Discord.