~/talk

Data Portals: Using PostgreSQL server-side cursors for secure and ...

Talkat PGConf NYC 2022 · 2022-09-22..09-23· [databases, security]
links:none on file
slides:none on file

Uses PostgreSQL named server-side cursors (psycopg2 NamedCursor) to hand a preloaded query resultset between apps, plus short-lived Postgres user accounts and row-level-security to enforce access, and a Python contextmanager cleanup to revoke access and close the connection. Targets bi-directional transfers measured in gigabytes to hundreds of gigabytes, avoids JSON serialization overhead, improves lower-percentile latency and throughput, and works when clients are few and trusted; not suitable for many concurrent untrusted clients or very frequent small requests.

AI-written summary · about

  1. 0:00Start
  2. 6:07Option 1: Add some webservers
  3. 8:18Option 2: Common staging area
  4. 11:43Summary: Problem Constraints
  5. 14:59What is a portal?
~/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.