Advanced Data Modeling Techniques in PostgreSQL
summary
Covers concrete techniques: build immutable SQL functions that produce indexed outputs (tsvector) so queries hit a functional index instead of scanning; use functional indexes and reindex after changing functions; extract structured fields from blobs using plperl text extraction to populate B‑tree indexes for ORDER BY on a 1TB corpus; model complex payloads with composite types and aggregates; solve polymorphic associations with table inheritance while avoiding cast/index pitfalls. Examples include PostGIS, a 5–10× speedup for packed arrays, and notes on generated columns.
AI-written summary · about
chapters (14)
- 0:00Introduction and setup
- 4:29Speaker introduction and course overview
- 9:09Relational database model fundamentals
- 12:44PostgreSQL's object-relational design
- 16:21Derived data modeling techniques
- 28:43First exercise walkthrough
- 37:58Extracting data from structured text
- 59:27Custom data types in PostgreSQL
- 1:09:06Tables as types and composite types
- 1:18:47Custom aggregates and functions
- 1:35:18Inheritance for polymorphic relationships
- 1:44:30Final exercise and partitioning notes
- 1:57:09Key takeaways and conclusions
- 2:01:25Q&A and resources
