云数据库 GaussDB-MY_TAB_STATISTICS

时间:2023-11-01 16:18:35

MY_TAB_STATISTICS

MY_TAB_STATISTICS存储数据库中有关当前用户拥有的表的统计信息。所有用户均可访问该视图,该视图同时存在于pg_catalog和sys_schema下。

表1 MY_TAB_STATISTICS字段

名称

类型

描述

table_name

character varying(128)

表名。

partition_name

character varying(128)

暂不支持,置NULL。

partition_position

numeric

暂不支持,置NULL。

subpartition_name

character varying(128)

暂不支持,置NULL。

subpartition_position

numeric

暂不支持,置NULL。

object_type

character varying(12)

对象类型:
  • TABLE
  • PARTITION
  • SUBPARTITION

num_rows

numeric

对象中的行数。

blocks

numeric

暂不支持,置NULL。

empty_blocks

numeric

暂不支持,置NULL。

avg_space

numeric

暂不支持,置NULL。

chain_cnt

numeric

暂不支持,置NULL。

avg_row_len

numeric

平均行长,包括行开销。

avg_space_freelist_blocks

numeric

暂不支持,置NULL。

num_freelist_blocks

numeric

暂不支持,置NULL。

avg_cached_blocks

numeric

暂不支持,置NULL。

avg_cache_hit_ratio

numeric

暂不支持,置NULL。

im_imcu_count

numeric

暂不支持,置NULL。

im_block_count

numeric

暂不支持,置NULL。

im_stat_update_time

timestamp(9) without time zone

暂不支持,置NULL。

scan_rate

numeric

暂不支持,置NULL。

sample_size

numeric

分析表格时使用的样本量。

last_analyzed

timestamp with time zone

最近分析表的日期。数据库重启后,数据会丢失。

global_stats

character varying(3)

暂不支持,置NULL。

user_stats

character varying(3)

暂不支持,置NULL。

stattype_locked

character varying(5)

暂不支持,置NULL。

stale_stats

character varying(7)

暂不支持,置NULL。

notes

character varying(25)

暂不支持,置NULL。

scope

character varying(7)

暂不支持,默认值SHARED。

support.huaweicloud.com/centralized-devg-v3-opengauss/gaussdb-12-1107.html