~/talk

Postgres Storytelling: Cunning Schema Design with Creative Data Modeling

Talkat POSETTE: An Event for Postgres 2025 · 2025-06-10..06-12· [databases]
links:none on file
links:none on file
slides:none on file

Designs a Postgres schema for a chess tournament: creates a chess schema, chess.players with serial primary key and case-insensitive unique name via CREATE UNIQUE INDEX (LOWER(name)); chess.games with foreign keys for white and black, a custom ENUM score = {white, black, draw} stored efficiently, and a uniqueness constraint across (white, black, phase, tournament) so players can only meet once per phase. Shows ALTER TABLE to add tournament and phase, demos inserting/violating constraints, and leaves preventing self-play as homework.

AI-written summary · about

  1. 0:00Introduction
  2. 1:54Start of “story”
  3. 5:57Whiteboard explanation – unique IDs, DB constraints
  4. 8:17Demo: schema
  5. 11:40Demo: case insensitive, unique index
  6. 14:46Whiteboard explanation – ENUM type
  7. 16:27Demo: ENUM type, business logic
  8. 19:57Whiteboard explanation: declarative programming
  9. 22:10Demo: alter table
  10. 27:00End of story and conclusion
~/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.