Skip to content
Opensource internals
  • Posts

Posts

All posts published on this site.

Everything published here, newest first.

tmux Control Mode Is an Unauthenticated Command Channel

Sep 19, 2026 8 min read Jay Hubbert

tmux -C gives you a scriptable protocol with zero authentication — anything that can open the socket can run run-shell.

TmuxSecurityControl modeInternals

Read more →

tmux Runs Real ptys for Every Pane

Sep 12, 2026 9 min read Jay Hubbert

A pane isn’t a picture of a terminal — it’s a real pty with a real process behind it, in its own session.

TmuxArchitectureInternalsPty

Read more →

PostgreSQL Groups Commits: How a Hundred Backends Share One fsync

Sep 12, 2026 50 min read Jay Hubbert

Committing doesn’t fsync: backends copy WAL into shared memory and piggyback on one fsync, using LWLockAcquireOrWait so followers can observe someone else’s flush without ever …

PostgresPerformanceWalInternals

Read more →

PostgreSQL's bit and varbit Implementation in C

Sep 8, 2026 9 min read Jay Hubbert

bit and varbit are the same varlena under the hood, and a single zero-padding invariant is what lets bit_cmp compare bit strings with a plain memcmp.

PostgresInternalsBitVarbit

Read more →

PostgreSQL's interval Implementation in C: Three Numbers That Refuse to Add Up

Sep 7, 2026 10 min read Jay Hubbert

An interval is three numbers — months, days, microseconds — collapsed only at comparison time, which is why ‘1 month’ equals ‘30 days’ but January 31 plus one month clamps to …

PostgresInternalsInterval

Read more →

← Newer Page 83 of 90 Older →

© 2026 Jay Hubbert · Built with Hugo 0.168.0

RSS ·