Skip to main content

PostgreSQL Uncovered: Internals, Trace Analysis, and Performance

0h 0m 0s
English
Paid

The course is designed for developers, database administrators, and anyone who wants to understand what actually happens "under the hood" of PostgreSQL.

You will start with familiar SQL queries and dive step by step into the internal workings of the DBMS: you will understand how the query planner works, how transactions and isolation are structured, how MVCC is organized, how B+Tree indexes, shared buffers, WAL (Write-Ahead Logging), vacuum and autovacuum processes, checkpoints, replication, and many other key mechanisms work.

The course combines theory with practice: you will learn to read EXPLAIN ANALYZE (BUFFERS, VERBOSE, TIMING), analyze traces using gdb and perf, understand PostgreSQL logs, and identify performance bottlenecks even in the most complex scenarios.

After completing the course, PostgreSQL will no longer be a "black box" — you will know exactly why a query works the way it does and how to optimize it at the core DBMS level.

About the Author: Bin Wang

Bin Wang thumbnail
An expert in solving complex problems in software development, possessing deep knowledge of the TCP core, MySQL, and PostgreSQL, as well as being passionate about artificial intelligence, history, mathematics, and physics.

Books

Read Book PostgreSQL Uncovered: Internals, Trace Analysis, and Performance

#Title
1Lesson 1. Why PostgreSQL Is More Than Just Data Storage
2Lesson 2. Inside PostgreSQL Unlocking Secrets with Trace Analysis
3Lesson 3. How a SQL Query Is Executed in PostgreSQL
4Lesson 4. PostgreSQL Architecture Inside the Database Engine
5Lesson 5. PostgreSQL Indexes Deep Dive for Developers
6Lesson 6. Why PostgreSQL Uses Heap Storage
7Lesson 7. How PostgreSQL Finds Rows in a B+ Tree_A Step-by-Step Example
8Lesson 8. B+ Tree Depth in PostgreSQL and Its Performance Impact
9Lesson 9. Index-Only Scans in PostgreSQL When Tables Are Skipped
10Lesson 10. Shared Buffers Explained What PostgreSQL Caches Internally
11Lesson 11. Understanding WAL in PostgreSQL The Write-Ahead Log
12Lesson 12. Inside PostgreSQL Writes From Shared Buffers to Disk
13Lesson 13. Why Doesn’t PostgreSQL Use Undo Logs for MVCC
14Lesson 14. MVCC Internals_How PostgreSQL Keeps Old Versions Alive
15Lesson 15. Autovacuum in PostgreSQL How It Works and When It Fails
16Lesson 16. PostgreSQL VACUUM Understanding Performance, Benefits, and Costs
17Lesson 17. System Catalogs The Metadata Control Center of a Database
18Lesson 18. Inside PostgreSQL How Transactions Really Work
19Lesson 19. PostgreSQL’s Hidden Strength Transactional DDL
20Lesson 20. How PostgreSQL Ensures Atomicity Using MVCC, CLOG, and WAL
21Lesson 21. Data Consistency in PostgreSQL_Constraints and Guarantees
22Lesson 22. Isolation Levels in PostgreSQL_A Practical Introduction
23Lesson 23. Same Isolation Level, Different Behavior PostgreSQL vs MySQL
24Lesson 24. Durability in PostgreSQL_How Crashes Don’t Lose Data
25Lesson 25. Why ROLLBACK Is So Fast in PostgreSQL
26Lesson 26. Checkpoints in PostgreSQL_What They Are and Why They Matter
27Lesson 27. Transaction ID Wraparound Why It Happens and How to Handle It
28Lesson 28. Locks in PostgreSQL_An Easy Guide to Types and Use Cases
29Lesson 29. Do Read-Only Queries Really Need VACUUM in PostgreSQL
30Lesson 30. Inside PostgreSQL’s Planner_From Query to Logical Plan
31Lesson 31. Inside PostgreSQL’s Cost Model How the Planner Thinks
32Lesson 32. How JOINs Work Internally in PostgreSQL
33Lesson 33. Join Tree Structures in Query Optimization
34Lesson 34. Join Enumeration Strategies Dynamic Programming vs Genetic Search
35Lesson 35. How PostgreSQL Reduces the Join Search Space
36Lesson 36. Understanding Join Graph Topology and Its Impact on Query Optimization
37Lesson 37. Why PostgreSQL Handles This JOIN 10× Faster Than MySQL
38Lesson 38. How PostgreSQL Aggregates Work Internally
39Lesson 39. PostgreSQL Parallel Query Execution The Key to Faster Analytics
40Lesson 40. WITH Queries Demystified How PostgreSQL Plans CTEs
41Lesson 41. How Databases Execute Window Functions A Deep Dive
42Lesson 42. Why PostgreSQL Query Optimization Is So Challenging
43Lesson 43. Planner Challenges in Distributed PostgreSQL
44Lesson 44. What PostgreSQL Extensions Are and How They Work
45Lesson 45. Representative PostgreSQL Extensions and Their Capabilities
46Lesson 46. Understanding Hstore’s Extension Mechanism in PostgreSQL
47Lesson 47. How pg_trgm Speeds Up Fuzzy Text Search
48Lesson 48. Inside PostgreSQL Extensions_How FDW Works Under the Hood
49Lesson 49. Inside PostgreSQL Extensions_How Citus Works Under the Hood
50Lesson 50. How Citus Teaches the Planner to Think Globally
51Lesson 51. How Citus Handles Joins Internally
52Lesson 52. Citus Transactions Uncovered How It Really Works
53Lesson 53. How Extensions Shape PostgreSQL Planning and Execution
54Lesson 54. PostgreSQL Extensions_How They Affect Performance and Stability
55Lesson 55. Why Hotspot Updates Hurt PostgreSQL Performance
56Lesson 56. Why Long Transactions May Kill Your PostgreSQL Performance
57Lesson 57. Why Performance Degrades Quickly in Long-Running TPC-C Tests
58Lesson 58. Trace Analysis_Understanding Its Power and Limitations
59Lesson 59. Migrating from MySQL to PostgreSQL Key Differences You Need to Know
60Lesson 60. Becoming a PostgreSQL Expert_Roadmap to Rapid Growth