Skip to content
Opensource internals
  • Posts

Posts

All posts published on this site.

Everything published here, newest first.

tmux Sanitises Window Names Against Injection

Oct 2, 2026 8 min read Jay Hubbert

clean_name() is tmux’s one defence against name-based injection, and it works by encoding rather than filtering: it stores names in a form where the dangerous characters…

TmuxSecurityInternalsSanitisation

Read more →

PostgreSQL's oid Implementation in C: The Type of Every Identifier

Oct 1, 2026 7 min read Jay Hubbert

oid is an unsigned int in a Datum, parsed by a strtoul-based helper that accepts hex, octal, and even a minus sign — and its sibling oid8 is becoming the TOAST chunk-id type.

PostgresInternalsOidOid8

Read more →

Why tmux Needs Its Own Terminal Emulator

Sep 28, 2026 8 min read Jay Hubbert

ncurses assumes one application owns one terminal. A multiplexer owns N screens and has to render them into one terminal without the terminal knowing.

TmuxArchitectureInternalsTerminal

Read more →

PostgreSQL's float4 and float8 Implementation in C: IEEE 754 With Opinions

Sep 22, 2026 9 min read Jay Hubbert

float8 is eight raw IEEE bytes in a Datum — but every op is overflow-checked, NaN equals itself and sorts above everything, and a GUC picks how many digits print.

PostgresInternalsFloat4Float8

Read more →

PostgreSQL Allocates Memory Fast: Size Classes, Freelists, and Context Recycling

Sep 19, 2026 40 min read Jay Hubbert

palloc quantises sizes to powers of two, keeps eleven freelists, carves dying blocks into reusable chunks, and recycles memory contexts so a per-tuple context costs zero mallocs.

PostgresPerformanceMemoryInternals

Read more →

← Newer Page 82 of 90 Older →

© 2026 Jay Hubbert · Built with Hugo 0.168.0

RSS ·