~/talk

Deep dive into resource manager, error and interrupt handling.

Talkat PGConf.dev 2026 · 2026-05-19..05-22· [databases]
linkedin:rahila-syed
slides:none on file

PostgreSQL’s ResourceOwner API (ResourceOwnerCreate, ResourceOwnerRemember/Forget, ResourceOwnerRelease/Delete) tracks hundreds of ephemeral objects — a single CREATE TABLE can allocate 200–300+ resources — and releases them in three phases (before locks, locks, after locks) with per-type priorities and per-type release callbacks. Error reporting builds an ErrorData then transfers control via sigsetjmp/siglongjmp so ERROR aborts a transaction, FATAL exits a session, PANIC aborts the cluster; START_CRIT_SECTION/END_CRIT_SECTION forces PANIC on failure to ensure WAL-before-data. Interrupt handlers set flags in signal handlers and run CHECK_FOR_INTERRUPTS at safe points. The code duplicates cleanup across process types and proposes a unified sigsetjmp top-level cleanup with process-specific callbacks and flags.

AI-written summary · about

  1. 0:00Introduction
  2. 1:08Resource manager basics
  3. 8:29Resource owner operations
  4. 12:47Error handling in Postgres
  5. 17:42Error handling improvements
  6. 19:25Critical sections and WAL
  7. 20:29Interrupt handling
  8. 21:12Key takeaways and conclusion
~/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.