Skip persistent tables in VACUUM
Vacuum lazy is harmless, but also no benefit to perform just extra work. Vacuum full could turn out dangerous as it has potential to move tuples around causing the TIDs for tuples to change, which violates its reference from gp_relation_node. In general persistent table has all frozen tuples so vacuum full is harmless too, but for example one scenario where it becomes dangerous is zero-page case due to failure after page extension but before page initialization. Also, since all the tuples in persistent table are frozen inserts, skip it from database age calculation.
Showing
想要评论请 注册 或 登录