得到各节点数据中每个表的一行(包括TOAST表)的统计信息。
表 1 GLOBAL_STAT_ALL_TABLES字段
名称 | 类型 | 描述 |
---|---|---|
node_name | name | 数据库进程名称。 |
relid | oid | 表的OID。 |
schemaname | name | 此表的模式名。 |
relname | name | 表名。 |
seq_scan | bigint | 此表发起的顺序扫描数。 |
seq_tup_read | bigint | 顺序扫描抓取的活跃行数。 |
idx_scan | bigint | 此表发起的索引扫描数。 |
idx_tup_fetch | bigint | 索引扫描抓取的活跃行数。 |
n_tup_ins | bigint | 插入行数。 |
n_tup_upd | bigint | 更新行数。 |
n_tup_del | bigint | 删除行数。 |
n_tup_hot_upd | bigint | HOT更新行数(比如没有更新所需的单独索引)。 |
n_live_tup | bigint | 估计活跃行数。 |
n_dead_tup | bigint | 估计死行数。 |
last_vacuum | timestamp with time zone | 最后一次此表是手动清理的(不计算VACUUM FULL)的时间。 |
last_autovacuum | timestamp with time zone | 上次被autovacuum守护进程清理的时间。 |
last_analyze | timestamp with time zone | 上次手动分析这个表的时间。 |
last_autoanalyze | timestamp with time zone | 上次被autovacuum守护进程分析时间。 |
vacuum_count | bigint | 这个表被手动清理的次数(不计算VACUUM FULL)。 |
autovacuum_count | bigint | 这个表被autovacuum清理的次数。 |
analyze_count | bigint | 这个表被手动分析的次数。 |
autoanalyze_count | bigint | 这个表被autovacuum守护进程分析的次数。 |
「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。