~/talk

Internal data value representation in PostgreSQL.

Talkat PGConf.dev 2026 · 2026-05-19..05-22· [databases]
name:Amul Sul
links:none on file
slides:none on file

Explains exactly how SQL literals become in-memory DATUMs and on-page tuples, showing that DATUM is 8-byte on 64-bit systems (changed in 2025) so small types are passed by value and larger ones by reference, how heap_form_tuple, heap_deform_tuple and heap_getattr build tuples, and why pages are limited to 8 KB page with a 2 KB TOAST threshold that triggers compression and out‑of‑line storage; details include varlena headers (1‑byte or 4‑byte), ~1 GB varlena limit, and a 17 MB example compressed to ~94 KB.

AI-written summary · about

  1. 0:00Introduction to values in PostgreSQL
  2. 1:08What is a value in PostgreSQL
  3. 2:40Data types and fixed-length values
  4. 4:29Variable-length data types and TOAST
  5. 6:18Memory representation of values
  6. 8:49Values on disk and constraints
  7. 10:56Tuple formatting and alignment
  8. 13:05TOAST storage technique explained
  9. 17:25Live demo of value storage sizes
  10. 22:50Why alignment and padding matter
  11. 25:04Summary and key takeaways
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.