Interview practice question
Analytics query on a replica affects the primary
Backend Engineering · Relational Databases · Experienced
A long analytics query on a Postgres replica caused bloat on the primary. How is that possible, and what do you do?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- hot_standby_feedback keeps old rows on primary.
- Long replica queries block vacuum.
- Or replica query cancelled due to conflicts.
- Separate analytics replica with feedback off.
- Move analytics to warehouse.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.