~/talk

Learning advanced SQL the weird (and hard) way

Talkat PostgreSQL Conference Europe 2023 · 2023-12-12..12-15· [databases]
links:none on file
slides:none on file

Claims to solve Advent of Code puzzles using only Postgres SQL and succeeds on many days, beating a Java attempt by one home competitor. Uses Postgres 17 with no extensions, loading inputs via psql backslash copy into text columns, adding IDs, vacuum analyze and indexes for performance, and tools like generate_series, generated columns, ranges, geometric types and heavy regexp. Implements recursion with recursive CTEs or iterative procedures invoked via psql exec, organizes each day in its own schema, sometimes runs up to a two‑day timeout, and learns concrete limits and unexpected tricks.

AI-written summary · about

  1. 0:00Intro
  2. 0:21About me
  3. 2:25Slides
  4. 4:02Advent of Code
  5. 5:55AI vs SQL
  6. 6:58Rules
  7. 8:41First things I learned
  8. 9:48Creating a repository
  9. 10:55Loading data
  10. 12:35Dropping a schema
  11. 13:48Data types
  12. 15:18Performance
  13. 16:50Tools and tips
  14. 19:11Generate Series
  15. 19:59Ordinality
  16. 21:36ID
  17. 22:22Poker
  18. 23:40Regular Expressions
  19. 25:35Documentation
  20. 26:21Pivot tables
  21. 27:15Vicks code
  22. 27:47Cities
  23. 29:30Recurse
  24. 32:12Null
  25. 33:45Comments
  26. 38:06Questions
~/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.