
# GS_STAT_ALL_PARTITIONS
GS_STAT_ALL_PARTITIONS视图包含当前数据库中所有分区表每个分区的信息，每个分区各占一行，显示该分区访问情况的统计信息，此视图信息由gs_stat_get_all_partitions_stats()函数查询得到。
表1GS_STAT_ALL_PARTITIONS字段 
| 名称                 | 类型                       | 描述                            |
|:---|:---|:---|
| partition_oid      | oid                      | 分区的OID。                       |
| schemaname         | name                     | 该分区所在表的模式名。                   |
| relname            | name                     | 该分区所在表的表名。                    |
| partition_name     | name                     | 该分区所在一级分区名。                   |
| sub_partition_name | name                     | 该分区所在二级分区名。分布式不支持二级分区，值为NULL。 |
| 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 | 该分区最后一次被清理的时间。                |
| last_autovacuum    | timestamp with time zone | 该分区最后一次被autovacuum守护线程清理的时间。  |
| last_analyze       | timestamp with time zone | 该分区最后一次被分析的时间。                |
| last_autoanalyze   | timestamp with time zone | 该分区最后一次被autovacuum守护线程分析的时间。  |
| vacuum_count       | bigint                   | 该分区被清理的次数。                    |
| autovacuum_count   | bigint                   | 该分区被autovacuum守护线程清理的次数。      |
| analyze_count      | bigint                   | 该分区被分析的次数。                    |
| autoanalyze_count  | bigint                   | 该分区被autovacuum守护线程分析的次数。      |
   
