PostgreSQL is an open-source relational database that implements the SQL standard with extensions for window functions, common table expressions, JSON and JSONB columns, full-text search, geographic data via PostGIS, and concurrent index builds. The 16.x release line ships with logical replication, parallel query execution, just-in-time compilation for expression evaluation, and SQL/JSON path expressions. Students meet PostgreSQL in CS186 (Berkeley Database Systems), CS145 (Stanford Intro to Databases), 6.830 (MIT Database Systems), CMU 15-445 (Database Systems), and any web development course that picks a real database over SQLite.
The query planner uses cost-based optimization with statistics gathered by ANALYZE, choosing between sequential scan, index scan, index-only scan, bitmap heap scan, nested loop join, hash join, and merge join based on table sizes, predicate selectivity, and available indexes. CSHH tutors deliver schema designs in third normal form (with denormalization explicit and justified), SQL queries that EXPLAIN ANALYZE confirms uses index scans rather than sequential scans, indexes (B-tree for equality and range, GIN for full-text and JSONB containment, GiST for geometric and exclusion constraints, BRIN for time-series tables), transactions with the correct isolation level (READ COMMITTED default, REPEATABLE READ for reports, SERIALIZABLE for financial logic), and migrations using flyway, liquibase, or framework-native tools (Django migrations, Sequelize migrations, Alembic for SQLAlchemy).