当前位置:   article > 正文

Greenplum数据库:HINT: To avoid a database shutdown, execute a full-database VACUUM in DB_vacuum freeze database

vacuum freeze database

HINT: To avoid a database shutdown, execute a full-database VACUUM in DB

这是数据库库龄超出阈值的一个提醒

      数据库的年轮值:
      select datname,age(datfrozenxid) from pg_database;

     数据库设置的阀值:
      select setting from pg_settings where name ='vacuum_freeze_min_age';

     临时文件的年轮值:
     select relname,age(relfrozenxid) from pg_class where relkind='r' order by 2 desc;

 

处理方式:

登录greenplum的master及各个segment实例,并执行vacuum freeze:

PGOPTIONS="-c gp_session_role=utility" psql -h xx -p xx -U xx -d DB;

DB#  vacuum freeze;

DB#  vacuum analyze;

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/你好赵伟/article/detail/256304
推荐阅读
相关标签
  

闽ICP备14008679号