数据仓库服务 GAUSSDB(DWS)-冷热表用户函数:pg_lifecycle_node_data_distribute()

时间:2024-01-26 16:15:18

pg_lifecycle_node_data_distribute()

描述:查看所有冷热表数据分布情况。

返回值:record

示例:数据库中当前存在两个冷热表,其数据分布情况如下。

1
2
3
4
5
6
SELECT * FROM pg_catalog.pg_lifecycle_node_data_distribute();
 schemaname | tablename | nodename | hotpartition | coldpartition | switchablepartition | hotdatasize | colddatasize | switchabledatasize 
------------+-----------+----------+--------------+---------------+---------------------+-------------+--------------+--------------------
 public     | w1        | dn_1     | p2           | p1            |                     |       81920 |            0 |                  0
 public     | w2        | dn_1     | p2           | p1            |                     |       81920 |            0 |                  0
(2 rows)
support.huaweicloud.com/sqlreference-820-dws/dws_06_0362.html