~/talk

Lesser known features of PostgreSQL

Talkat Citus Con: An Event for Postgres 2022 · 2022-04-12..04-13· [databases]
slides:none on file

Shows concrete Postgres tricks: use the system column xmax to tell xmax = 0 trick which upsert rows were inserted vs updated, use pg_sleep_for(interval) to sleep with human intervals, match many patterns via SIMILAR TO / regex or email LIKE ANY(array), make random data reproducible with setseed(seed), write big string or JSON literals with dollar quoting, enforce identity keys with GENERATED ALWAYS plus OVERRIDING SYSTEM VALUE, add constraints fast with ALTER ... NOT VALID then VALIDATE, and export multi-line results by COPY TO STDOUT piped to \g.

AI-written summary · about

  1. 0:00Introduction
  2. 1:56Lesser known features from PG 10
  3. 2:40of updated & inserted rows at upsert
  4. 7:18Sleeping
  5. 9:07Match against multiple patterns
  6. 11:55Generate reproducible random data
  7. 14:26Dollar quoting
  8. 17:51Prevent setting the value of an auto-generated key
  9. 20:34Add constraints without validating immediately
  10. 22:49PSQL tips
  11. 26:26Q&A with Haki & Claire
~/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.