Updated on 2024-06-03 GMT+08:00

GS_STATIO_ALL_PARTITIONS

GS_STATIO_ALL_PARTITIONS contains I/O statistics about each partition in a partitioned table of the current database. The information can be queried by using the gs_statio_get_all_partitions_stats() function.

Table 1 GS_STATIO_ALL_PARTITIONS columns

Name

Type

Description

partition_oid

oid

Specifies a partition OID.

schemaname

name

Specifies the name of a partition schema.

relname

name

Specifies the name of a table where the partition is located.

partition_name

name

Specifies the name of a level-1 partition to which the partition belongs.

sub_partition_name

name

Specifies the name of a level-2 partition to which the partition belongs. The distributed system does not support level-2 partitions. Set this parameter to NULL.

heap_blks_read

bigint

Specifies the number of disk blocks read from the partition.

heap_blks_hit

bigint

Specifies the number of cache hits in the partition.

idx_blks_read

bigint

Specifies the number of disk blocks read from indexes in the partition.

idx_blks_hit

bigint

Specifies the number of cache hits in indexes in the partition.

toast_blks_read

bigint

Specifies the number of disk blocks read from the TOAST table partition (if any) in the partition.

toast_blks_hit

bigint

Specifies the number of buffer hits in the TOAST table partition (if any) in the partition.

tidx_blks_read

bigint

Specifies the number of disk blocks read from the TOAST table partitioned index (if any) in the partition.

tidx_blks_hit

bigint

Specifies the number of buffer hits in the TOAST table partitioned index (if any) in the partition.