数据仓库服务 GAUSSDB(DWS)-服务器信号函数:pg_wlm_jump_queue(pid int)

时间:2024-12-06 15:12:39

pg_wlm_jump_queue(pid int)

描述:调整任务到CN队列的最前端。

返回值类型:boolean

备注:如果成功,函数返回true,否则返回false。

示例:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
SELECT pid FROM pg_stat_activity WHERE stmt_type ='RESET';
       pid
-----------------
 281471222065200
(1 row)

SELECT pg_wlm_jump_queue(281471222065200);
 pg_wlm_jump_queue
-------------------
 t
(1 row)
support.huaweicloud.com/sqlreference-910-dws/dws_06_0055.html