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

时间:2025-02-12 15:04:42

pg_refresh_storage()

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

返回值类型:int

返回值字段:

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

示例:

12345
SELECT * FROM pg_refresh_storage(); success_count | failed_count---------------+--------------             1 |            0(1 row)
support.huaweicloud.com/sqlreference-910-dws/dws_06_0362.html