I understand it makes sense to analyze a Materialized View (MV), but since MVs are not updateable, does that imply that we need not ever vacuum a MV?
1 Answer
Materialized views need to be vacuumed:
At some point, old rows need to be “frozen” to prevent data loss when the transaction ID counter wraps around.
If you use
REFRESH MATERIALIZED VIEW CONCURRENTLY
, dead tuples are created and need to be removed byVACUUM
.
-
1