Being mindful of query optimizer
summary
A migration checklist focused on measurable differences: DB2 compiles PL/SQL with semantic checks and stores executable plan in memory, PostgreSQL often defers semantic errors and replans every run unless you enable auto_explain; DB2 has optimization levels 0–9 while Postgres relies on stats (default_stats_target=100) and analyze/vacuum; use db2 explain table + db2exfmt or pg explain/analyze and visuals like Depesz; watch null behavior—Oracle may do a full table scan while Postgres does an index-only scan; historical failure rate cited ≈75–80% and a 10,000-row demo validates these differences.
AI-written summary · about
chapters (5)
- 0:00Introduction to query optimizers
- 2:55DB2 vs PostgreSQL optimizer differences
- 24:26Oracle optimizer explained
- 40:19Query optimization in practice
- 45:00Q&A session
related talks
22mAccelerating PL/pgSQL Code Conversation When Migrating to Postgres
48mMigrating to PostgreSQL: Strategies, Sovereignty, and Success
41mOptimizing your app by understanding your PostgreSQL database
46mThe Top 10 Mistakes When Migrating Oracle Databases to PostgreSQL
29mExplaining the Postgres Query Optimizer
36mTales from the Postgres Front, and What We Can Learn
01h 09mReplacing Oracle Features in PostgreSQL: HA, Functions & Extensibility
52mUnderstanding PostgreSQL Query Plans (aka EXPLAIN)
