PostgreSQL's macaddr and macaddr8 Implementation in C: Six Bytes, Eight Bytes, One Marker
macaddr8 accepts six-byte EUI-48 input and rewrites it by inserting FF FE in the middle — the marker that makes conversion back to macaddr reversible.
macaddr8 accepts six-byte EUI-48 input and rewrites it by inserting FF FE in the middle — the marker that makes conversion back to macaddr reversible.
The type named “char” is one by-value byte; “name” is a fixed 64-byte NUL-padded struct whose size is an ABI constant every extension has to agree on.
PostgreSQL has two hash tables: dynahash grows one bucket at a time and never rehashes, while simplehash is a templated open-addressing table that resizes without rehashing a …
PostgreSQL’s port/simd.h is a portable SSE2/NEON vector layer, and COPY FROM, hex coding, JSON escaping, ASCII validation, linear search and radix-tree lookup all use it to skip …
A range is a varlena: length, its own type OID, two inline bounds, and a flags byte at the very end — with discrete types rewriting exclusive bounds on the way in.