PostgreSQL 9: Does Vacuuming a table on the primary replicate on the mirror?
Posted
by
Scott Herbert
on Server Fault
See other posts from Server Fault
or by Scott Herbert
Published on 2010-12-13T22:16:26Z
Indexed on
2010/12/25
5:55 UTC
Read the original article
Hit count: 334
replication
|postgresql
Running PostgreSQL 9.0.1, with streaming replication keeping one read-only mirror instance up to date. Auto-vaccuum is on on the primary, except for a few tables which are not vacuumed by the auto-vacuum daemon, in an effort to reduce business-hour IO. These tables are "materialised views".
Each night at midnight, we run a vacuum across the database in order to clean up those tables that are excluded from the auto-vacuum. I'm wondering if that process replicates across to the mirror, or if I need to set up vacuum on the mirror as well?
© Server Fault or respective owner