~/talk

Developing DB Extensions in Python: Examples for SQLite, DuckDB & PostgreSQL

Talkat PyCon Greece 2025 · 2025-08-29..08-30· at 16:15· Auditorium "Miltiadis Evert"· [databases, python]
slides:none on file

Covers concrete recipes for extending SQLite, DuckDB and PostgreSQL: register Python callables with sqlite3.create_function, use PL/Python for in‑server functions or embed CPython in an extension, and write aggregates that run inside the engine. Shows working projects: a PDF data type (pgPDF), a JQ-style JSON mapper, a Redis‑like Postgres API, window functions and a zip generator, plus correlation aggregates (nonlinear scores computed in‑DB, “detect correlations in under ten lines” demonstrated). Notes performance, security (superuser/unsafe PL concerns) and when C is still required.

AI-written summary · about

  1. 0:00Introduction and background
  2. 1:32Python vs SQL fundamentals
  3. 5:21SQL extensions explained
  4. 9:13Extending databases with Python
  5. 14:49SQLite and DuckDB comparison
  6. 18:04Custom aggregates and analytics
  7. 21:48Practical advice for Python developers
~/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.