- Why Postgres over MySQL?
- JSONB, window functions, CTEs, better standards compliance, more robust transactional guarantees. MySQL wins on simpler replication and slightly faster reads for basic queries.
- What makes Postgres special?
- JSONB (indexed JSON), full-text search, array types, GIS (via PostGIS), range types, and extensibility. It's a database + a Swiss army knife.
- Beginner mistakes?
- Storing dates as TEXT (use TIMESTAMPTZ), forgetting to index foreign keys, running long transactions that block VACUUM.
- psql essentials?
- \l (list databases), \c (connect), \dt (tables), \d (describe), \e (edit in editor), \i (include a file). Learn these and you're productive in the shell.