teledb_vacuum_advice
 
                  更新时间 2025-02-05 09:36:57
                 
 
                    最近更新时间: 2025-02-05 09:36:57
                  
 本页介绍天翼云TeleDB数据库系统视图teledb_vacuum_advice的内容。
 - 插件开启与关闭 - 开启:create extension pg_vacuum_advice; - 同时配置shared_preload_libries=pg_vacuum_advice; - 关闭:drop extension pg_vacuum_advice; 
- 插件表查找 - select * from teledb_vacuum_advice;
- 插件表字段 - 名称 - 类型 - 定义 - table_name - text - 插件记录的表的名称 - node_str - text - 该表所在的DN节点 - start_time - timestamptz - 上一次autovacuum开始时间 - End_time - timestamptz - 上一次autovacuum结束时间 - system_usage - text - 上一次autovacuum用户态、内核态的CPU使用时间 - io_read_rate - real - vacuum过程中磁盘读取速率;单位MB/s - io_write_rate - real - vacuum过程中磁盘写入速率;单位MB/s - size_change - real - vacuum前后表体积变化 - failure_reason_big_table - boolean - 如果为t,系统中可能存在因表太大引起的autovacuum失效 - failure_reason_many_tables - boolean - 如果为t,系统中可能存在表数量太多引起的utovacuum失效 - failure_reason_long_transaction - boolean - 如果为t,系统中可能存在长事务引起的autovacuum失效 
- GUC参数解释与设置 - pg_vaccum_advice.longxact_threshold:如果事务持续时长超过该时间并阻塞autovacuum清理,则插件进行提示;单位分钟 pg_vaccum_advice.bigrel_threshold :如果表元组数超过该大小,并因此影响autovacuum触发,则插件进行提示 
- pg_vaccum_advice.many_rels_threshold:如果autovacuum清理过程中,收集到的表超过该数量,则插件进行提示 
 
