wangbin579
@wangbin579
Followers
17K
Following
1K
Media
345
Statuses
3K
Expert in tackling complex software challenges, with deep knowledge of TCP, MySQL and PostgreSQL kernels, and a passion for AI, history, math, and physics.
Beijing, China
Joined October 2012
PostgreSQL Uncovered: Internals, Trace Analysis, and Performance
wangbin579.gumroad.com
🌟 PostgreSQL Uncovered: Internals, Trace Analysis, and PerformanceA step-by-step journey to help you understand how PostgreSQL works from the inside out.🎓 About the CourseThis course is designed...
10
43
366
This case shows that the plan citus picked is definitely not the best. After digging through a lot of traces, I can only say citus still isn’t very mature.
0
1
22
The distributed planner in citus is basically a heuristic planner with simple logic. A real distributed planner is much more complicated than what citus has. I’ve also seen most of the major flaws in the extension approach.
@wangbin579 the fact that Citus could do all that as an extension is still an impressive feats in the DB world. Did you find any specific edge cases where the distributed planner falls back to a less optimal path? Tracing usually uncovers the ghosts.
0
1
35
To explain extensions clearly in my postgres course, I spent a lot of time tracing citus, which took at least a full week. I doubt anyone in the future will dig so deeply into postgres just to write a book or teach a course. Would you?
1
0
23
citus handles the A, C, and D of ACID. The paper also says extensions currently don’t support implementing isolation (I).
0
0
3
The 2025 Framer Awards are open. Compete in 10 categories for $100,000 in prizes. New to Framer? Start building today and join the designers creating the internet’s best websites.
2
3
19
I think I’ve got a solid understanding of how citus’s distributed planner and executor work now. Tracing the internals really helped me see how you can build a distributed database just by using extensions.
6
22
179
Once you understand Postgres internals, you will at least realize: (1) There is no perfect database in the world today. (2) Building on MySQL, especially for distributed databases, is so painful. (3) MySQL is weak at handling joins, even with more advanced dynamic programming
Anyone truly passionate about databases should study Postgres internals, especially the planner and extensions. Without this knowledge, a database career is incomplete.
5
30
426
Anyone truly passionate about databases should study Postgres internals, especially the planner and extensions. Without this knowledge, a database career is incomplete.
5
21
303
Plans often fall behind reality. Six months into the Postgres course, I still have no idea when I’ll actually finish it, but at least I think I have already mastered the toughest part, the planner.
4
0
29
We are FLYING 9% up Wow in first 45 min OMG ! $NVDA $TSLA $AMC $GME
2
5
48
Owing to the extensive depth of the planner content, including 45 days dedicated to developing the trace tool, 20 days of material preparation, and 10 days of writing, even with full effort I still need five more days for final refinement. I apologize for the delay and appreciate
1
6
169
I really suggest MySQL developers and enthusiasts study Postgres in depth. It might answer a lot of the questions you’ve been wondering about.
2
3
34
Thanks for the reminder. The more accurate terms are the DP-based search (standard_join_search) and GEQO.
0
0
0
Postgres’s DP planner isn’t perfect. Sometimes the genetic algorithm finds a better plan because of row estimate issues. Only real testing shows what actually works, so don’t assume DP is always best.
3
2
39
Sleigh the season with the most personal gift around. Get them a Cameo video!
0
76
923
I have a Postgres example: same estimated cost, but one query is instant and the other could take forever. Want to see?
3
0
17
My course combines theory with hands-on practice, focusing on three key areas: the storage engine, the optimizer (the deepest and most unique part of the course), and how extensions work. If you complete the course and spend plenty of time practicing with my trace tool, and you
@wangbin579 Hi, can I ask how’s https://t.co/002uOzqjlb compared to the Postgres internals book?
3
2
36
Is there a book written from a DSA perspective? Books like that are by true experts.
@wangbin579 I probably have read all Postgres books under the sun. Lot of them are good. But few are really deep. Like Postgres Internals book, or Mastering Postgres 15 or the Postgres Administration book by 6 guys.
2
2
25
You could be here by Friday for a weekend of sun salutations
1
1
15
Why do Postgres internals books feel like something beautiful but all wrapped up and untouchable? It’s much more fun to really dig in and see how things actually work!
2
4
39
These articles are good, but they’re not really for regular users. If you want to become a true master, I’m pretty sure you’ll need three things: trace analysis for hands-on practice, sometimes by reading the source code, research papers to build your theory, and AI tools to
@wangbin579 Folks like these talk about these topics a lot in public and private, the communities are just sometimes harder to find https://t.co/5SGkVeKlwg
https://t.co/zozTIZblTV
1
0
28