~/talk

Python in your database

Talkat PyCon Canada 2012 · 2012-11-09..11-11· [databases, python]
links:none on file
slides:none on file

PostgreSQL supports PL/Python so you can write stored functions that run inside the server process, reducing network round trips and format conversions and letting different clients reuse one implementation. Install via create extension plpython, import modules installed on the DB server, and call SQL from Python through plpy (or use a DB-API wrapper). Use plpy.subtransaction to catch unique‑violation loops or other errors without aborting the main transaction. Keep SQL wrappers tiny and put testable logic in normal .py modules.

AI-written summary · about

  1. 0:00PostgreSQL
  2. 3:37Why Stored Functions: Triggers
  3. 4:09Tradtional pl/SQL functions
  4. 7:11Basic function
  5. 10:32Calling the database
  6. 16:25Questions?
~/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.