PostgreSQL Vacuum Freezing Strategy: Keeping relfrozenxid Moving
Our orders table got vacuumed three times a day and its relfrozenxid still crept 2 million xids a week — until one Tuesday the anti-wraparound vacuum read all 420 GB of it in a single afternoon. The freeze knobs, the eager-versus-lazy mechanics, and the per-table fix.