数据仓库服务 GaussDB(DWS)-其它函数:create_wdr_snapshot()

时间:2023-11-01 16:20:15

create_wdr_snapshot()

描述:创建性能数据快照。

返回值类型:text

  • 该函数只有数据库管理员SYSADMIN才可以执行,非管理员执行会提示无权限。
  • 该函数只能在CN上执行,在DN上执行会返回:“WDR snapshot can only be created on coordinator.”。
  • 执行该函数前需确认enable_wdr_snapshot参数处于开启状态。如果enable_wdr_snapshot为off,执行该函数会返回:“WDR snapshot request can't be executed, because GUC parameter 'enable_wdr_snapshot' is off.”。
  • 如果执行该函数时,快照线程由于节点重启等原因尚未启动,会提示错误:“WDR snapshot request can not be accepted, please retry later.”。
  • 如果执行该函数失败,会提示:“Cannot respond to WDR snapshot request.”。
  • 如果执行成功,会返回:“WDR snapshot request has been submitted.”。该提示表明创建快照请求已发送至后台快照线程,但不代表创建快照成功。
support.huaweicloud.com/sqlreference-dws/dws_06_0062.html