~/talk

Postgres with Python inside and out: PL/Python

Talkat PyOhio 2014 · 2014-07-26..07-27· [databases, python]
links:none on file
slides:none on file

Shows how to install and use PL/PythonU in PostgreSQL to run Python code inside the database, creating a function that returns a set of composite type tweet and uses the twey module to fetch the last 20 tweets (demoed live). Shows creating triggers that call out to the Twitter API on insert, using PL.pypi’s plpy execute/prepare API, psycopg extras dict cursors for Flask long-polling event streams, notes that PL/Python runs in the server process, needs superuser to define untrusted functions, and that the demo works end-to-end.

AI-written summary · about

  1. 0:00Introduction to PL/Python
  2. 4:44Extension and Untrusted Code
  3. 10:21Set Returning Functions
  4. 16:01Using the SD Object
  5. 22:15Database Triggers
  6. 30:49Building the Presentation
  7. 38:04Live Updates and Polling
  8. 45:15Q&A and Best Practices
~/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.