~/talk

Advanced Data Types in PostgreSQL

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

Explains ENUMs, Arrays, Composite types, Range types, and how to implement custom types with concrete SQL and C functions. Demonstrates ENUM vs domain behavior (case sensitivity), arrays vs jsonb choices, a reservation exclude constraint using b3 gist, a domain for MD5 checks and a 150‑year life‑range check. Builds a boolean2 type that outputs 0/1 to satisfy PHP drivers, wires input/output/receive/send and indexing, and reports this fixes many compatibility issues while operating across 900–1000 PostgreSQL databases.

AI-written summary · about

  1. 0:00Start
  2. 3:22Money
  3. 10:16Transform Aries into Strings
  4. 11:08Json B Types
  5. 16:57Jsonb Insert
  6. 19:55Domains
  7. 23:14Enum
  8. 29:55Range Types
  9. 31:48Indexes
  10. 39:09Create a New Type in Postgres
~/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.