~/talk

Advanced Int - Bigint Conversions

Talkat PGConf NYC 2021 · 2021-12-02..12-03· [databases]
slides:none on file

Claims an actual near-miss outage at a unicorn and gives concrete fixes: a cheap pg_stats histogram query to find columns approaching 2,147,483,647, an emergency flip sequence to negative to buy billions of IDs, and migration patterns that use views+triggers with transactional DDL or a separate future table/backfill. Notes pitfalls — unsigned ints in apps, stale ANALYZE, indexing gaps — and offers a default-function trick to sample bigints for safe rollout.

AI-written summary · about

  1. 0:00Start
  2. 1:09Ground Rules
  3. 3:36Goldilocks and the Three Data Types
  4. 10:22Artificial Escalation
  5. 18:36Integer Arrays
  6. 18:53Json Columns
  7. 24:07Examples
  8. 33:31Data Types
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 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
?
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.