~/talk

Triggers: Friends to Handle With Care

Talkat pgDay Paris 2018 · on Thursday, 2018-03-15· [databases]
links:none on file
slides:none on file

Explains exact trigger mechanics in PostgreSQL: trigger functions must return trigger and use NEW/OLD and tg_op, choice of BEFORE/AFTER and FOR EACH ROW vs FOR EACH STATEMENT affects timing and performance, PG10 adds transition tables (PG10) for statement-level row access. Describes a real build: survey pipeline for 10,000 companies per month that added empty rows, switched insert-only triggers to updates, then introduced a data-protection trigger — a missing condition caused historic rows to be updated; solution: tighter conditions, security-definer care, FDW audits, tests on real data and documented comments.

AI-written summary · about

  1. 0:00Introduction
  2. 1:49What is a trigger
  3. 2:59Workflow
  4. 3:35Trigger Functions
  5. 9:08Trigger Transition Tables
  6. 10:40Trigger Privilege
  7. 12:40Trigger Privilege Example
  8. 14:39Managing Triggers
  9. 18:22Trigger Names
  10. 20:53Trigger Table
  11. 22:00Functions
  12. 23:15Use Cases
  13. 25:55Problems
  14. 32:01Example
  15. 36:18Any Questions
  16. 38:27Recommendations
  17. 38:55Triggers
  18. 47:25Testing
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.