PostgreSQL & Databases
Partial indexes
Partial indexes contain rows matching their predicate and can shrink a hot query access path.
What is in the lesson
- A real situation where this goes wrong
- How it works, step by step
- A command to try yourself
- How it fails in production, and how to tell
- Three quiz questions with explanations
Read this lessonFree. No account needed.
More in PostgreSQL & Databases
- EXPLAIN ANALYZEBeginner · 4 min
EXPLAIN (ANALYZE, BUFFERS) runs the query and reports actual plan timing and buffer usage.
- HOT updatesBeginner · 4 min
Heap-only tuple updates can avoid secondary index churn when indexed columns stay unchanged and room exists on the page.
- Write-ahead logBeginner · 4 min
WAL records changes before durable data pages are written, enabling crash recovery and replication.
- CheckpointsBeginner · 4 min
Checkpoints bound crash recovery work by writing dirty buffers to storage.
- Logical replicationBeginner · 4 min
A publication emits selected table changes and a subscription applies them on the receiver.
- Replication lagBeginner · 4 min
Replication delay can arise from network transport, WAL replay, or apply throughput.