~/talk

Debugging your PL/pgSQL code

Talkat PGConf Silicon Valley 2016 · 2016-11-14..11-16· [databases]
links:none on file
slides:none on file

Debugging PL/pgSQL uses two concrete tools: the PL debugger (shippped in BigSQL, requires shared_preload_libraries and pgAdmin3) that lets sessions step, set global breakpoints on triggers and mutate variables mid‑run, and the PL profiler that produces flame graphs and pinpoints hot lines. A real case shows a tiny dynamic SQL line calling get_new_sequence called 8 million times, where fixing index column order shrinks a 10–15 minute run to 1.6s and doubles throughput.

AI-written summary · about

  1. 0:00Start
  2. 0:27Who Am I?
  3. 1:59Why?
  4. 3:44Example
  5. 5:07Database Developer
  6. 5:41Web Developer
  7. 8:13How?
  8. 10:16Fantasy Football
  9. 10:52Business Rules
  10. 11:23Sample Schema
  11. 11:53Procedures
  12. 13:41Debugging: RAISE
  13. 14:41Debugger
  14. 27:45Debugging Triggers
  15. 28:48Track Functions
  16. 30:05Profiler
  17. 35:19Real Use Case
  18. 39:26Summary
~/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.