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

时间:2024-06-29 17:51:35

pg_refresh_storage()

描述:切换所有冷热表,将符合冷热切换规则的数据由热数据切换至冷数据(OBS中)。

返回值类型:int

返回值字段:

  • success_count int:切换成功的表个数
  • failed_count int:切换失败的表个数

示例:

1
2
3
4
5
SELECT * FROM pg_refresh_storage();
 success_count | failed_count
---------------+--------------
             1 |            0
(1 row)
support.huaweicloud.com/sqlreference-830-dws/dws_06_0362.html