Skip to content
Opensource internals
  • Posts

Int2

PostgreSQL's Integer Type Implementation in C (int2, int4, int8)

Sep 3, 2026 7 min read Jay Hubbert

PostgreSQL has three signed integer widths: int2 (2 bytes), int4 (4 bytes), and int8 (8 bytes). They are not three separate designs. They are one design instantiated three times: a …

PostgresInternalsInt2Int4Int8

Read more →

© 2026 Jay Hubbert · Built with Hugo 0.168.0

RSS ·