Skip to content
Opensource internals
  • Posts

Performance

PostgreSQL Allocates Memory Fast

Sep 19, 2026 40 min read Jay Hubbert

Every C program that wants to be fast needs to be fast at allocating memory. PostgreSQL allocates memory in the tightest loop imaginable: a hash join probes its hash table once per …

PostgresPerformanceMemoryInternals

Read more →

PostgreSQL Groups Commits

Sep 12, 2026 50 min read Jay Hubbert

Every database has a moment where a transaction becomes durable, and every database has to decide what that moment costs. PostgreSQL’s answer is unusual: committing a transaction …

PostgresPerformanceWalInternals

Read more →

tmux Batches Terminal Output: One Write() Per Event Loop Iteration

Sep 5, 2026 10 min read Jay Hubbert

Every byte tmux sends to a terminal goes through one function that appends to a per-client buffer, and that buffer is flushed with a single write() per event loop iteration.

TmuxPerformanceInternalsTty

Read more →

PostgreSQL Computes Page Checksums Fast

Sep 5, 2026 29 min read Jay Hubbert

Every page PostgreSQL writes to disk gets a checksum: two bytes in the page header that let the server notice, on the next read, that the page it just read is not the page it …

PostgresPerformanceStorageInternals

Read more →

PostgreSQL Deduplicates B-Tree Entries

Sep 1, 2026 46 min read Jay Hubbert

Every index is a lie about multiplicity. A CREATE INDEX on a boolean column produces a structure in which, logically, there are only two distinct keys — but the index has to be …

PostgresPerformanceBtreeIndexInternals

Read more →

← Newer Page 5 of 8 Older →

© 2026 Jay Hubbert · Built with Hugo 0.168.0

RSS ·