geekspeak
pg_geekspeak · Database schema extension for the GeekSpeak podcast website.
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 100605 | geekspeak | pg_geekspeak | 1.0.0 | FEAT | GPL-2.0 | SQL |
PostgreSQL · 10
| Relationships | |
|---|---|
| Requires | btree_gist isn multicorn pgcrypto plpgsql |
Usage
Sources:
geekspeak installs the complete application schema used by the GeekSpeak podcast website: episodes, people, sessions, headlines, program segments, authentication helpers, search, and filesystem-backed media listings. It is application-specific data definition, not a reusable podcast toolkit, and installation creates many globally named objects in the selected schema.
Prerequisites and Installation
Version 1.0.0 requires btree_gist, isn, multicorn, pgcrypto, and plpgsql. Its SQL grants to two pre-existing roles and defines Multicorn filesystem tables, so create or map those roles deliberately before installation:
The schema hard-codes /var/www/geekspeak.org/media as the root for episode_media_fdt and episode_misc_fdt. The PostgreSQL service account and Multicorn Python environment must be able to access that directory before refreshing the materialized media view.
Main Object Groups
episodes,participants,people,locations,headlines,bits, andbit_templateshold show and editorial data.passwords,acls,sessions, andactive_sessionsimplement the site’s password, role, and persistent-session model.episode_media_fdt,episode_misc_fdt, andepisode_mediaexpose and cache files throughmulticorn.fsfdw.FilesystemFdw.login(),logout(),register(),recover(),confirm(), andupdate_password()implement application authentication flows.episode_as_json(),headlines_as_json(),bits_as_json(), and related helpers shape API output.geekspeak.session_durationcontrols the session lifetime and defaults to one month.
Example Read Path
Once application data and media have been provisioned, read through the packaged helper functions and views:
Operational Boundaries
Review the entire SQL before installing into a nonempty schema: it creates tables, triggers, a server, foreign tables, a materialized view, functions with fixed ownership, grants, absolute paths, and historical application assumptions. Password hashing, session expiry, IP tracking, ACLs, filesystem exposure, and API functions form a security boundary; do not reuse them without a contemporary security review. Test the old PostgreSQL 10-era SQL and Multicorn wrapper against the exact target versions, and plan independent migrations, backups, media permissions, and uninstall behavior for this application schema.