wangbin579 Profile
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
Don't wanna be here? Send us removal request.
@wangbin579
wangbin579
8 days
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
@premium
Premium
5 months
Why guess when you can know?
0
1K
12K
@wangbin579
wangbin579
8 days
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.
@getpochi
Pochi
8 days
@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
@wangbin579
wangbin579
8 days
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
@wangbin579
wangbin579
8 days
citus handles the A, C, and D of ACID. The paper also says extensions currently don’t support implementing isolation (I).
0
0
3
@framer
Framer
3 days
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
@wangbin579
wangbin579
8 days
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
@wangbin579
wangbin579
9 days
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
@wangbin579
wangbin579
10 days
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
@wangbin579
wangbin579
10 days
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
@wangbin579
wangbin579
13 days
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
@valent44355
Victor Renard
4 hours
We are FLYING 9% up Wow in first 45 min OMG ! $NVDA $TSLA $AMC $GME
2
5
48
@wangbin579
wangbin579
20 days
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
@wangbin579
wangbin579
29 days
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
@wangbin579
wangbin579
1 month
Thanks for the reminder. The more accurate terms are the DP-based search (standard_join_search) and GEQO.
0
0
0
@wangbin579
wangbin579
1 month
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
@BookCameo
Cameo
11 days
Sleigh the season with the most personal gift around. Get them a Cameo video!
0
76
923
@wangbin579
wangbin579
1 month
This might be the most challenging part of Postgres.
0
0
32
@wangbin579
wangbin579
1 month
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
@wangbin579
wangbin579
1 month
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
@SekFook
SekFook | Goldsky ☀️
1 month
@wangbin579 Hi, can I ask how’s https://t.co/002uOzqjlb compared to the Postgres internals book?
3
2
36
@wangbin579
wangbin579
1 month
Is there a book written from a DSA perspective? Books like that are by true experts.
@MohamedTechie
Mohamed Allam
1 month
@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
@VISITFLORIDA
VISIT FLORIDA
1 month
You could be here by Friday for a weekend of sun salutations
1
1
15
@wangbin579
wangbin579
1 month
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
@wangbin579
wangbin579
1 month
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
@SJP1804
SJP 👨🏿‍💻
1 month
@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