当前位置:网站首页>Gbase 8C server signal function
Gbase 8C server signal function
2022-07-28 01:55:00 【Dazhuang twelve】
The server signal function sends control signals to other server processes . Only system administrators can use these functions .
pg_cancel_backend(pid int)
describe : Cancel the current query of a backend .
return type :Boolean
remarks :pg_cancel_backend Go from pid The identified backend process sends a query to cancel (SIGINT) The signal . Of an active backend process PID It can be downloaded from pg_stat_activity View's pid Field found , Or use it on the server ps List database processes . have SYSADMIN Privileged user , The owner of the database to which the backend process is connected , The owner of the back-end process or inherits the built-in role gs_role_signal_backend Users with permission have the right to use this function .
pg_reload_conf()
describe : Cause all server processes to reload their configuration files ( System administrator role is required ).
return type :Boolean
remarks :pg_reload_conf Send a... To the server SIGHUP The signal , Cause all server processes to reload configuration files .
pg_rotate_logfile()
describe : Scroll the log files of the server ( System administrator role is required ).
return type :Boolean
remarks :pg_rotate_logfile Send a signal to the log file manager , Tell it to switch to a new output file immediately . This function can only be used in redirect_stderr It is only useful for log output , Otherwise, there is no log file manager subprocess .
pg_terminate_backend(pid int)
describe : Terminate a background thread .
return type :Boolean
remarks : If it works , The function returns true, Otherwise return to false. have SYSADMIN Privileged user , The owner of the database to which the backend process is connected , The owner of the back-end process or inherits the built-in role gs_role_signal_backend Users with permission have the right to use this function .
Example :
gbase=# SELECT pid from pg_stat_activity;
pid
-----------------
140573611915008
140573668599552
140574052771584
140573954000640
140574121588480
140574004344576
140573970781952
140573987563264
(8 rows)
gbase=# SELECT pg_terminate_backend(140573987563264);
pg_terminate_backend
----------------------
t
(1 row)
pg_terminate_session(pid int64, sessionid int64)
describe : Terminate a background session.
return type :Boolean
remarks : If it works , The function returns true, Otherwise return to false. have SYSADMIN Privileged user , The owner of the database to which the session is connected , The owner of the session or inherits the built-in role gs_role_signal_backend Users with permission have the right to use this function .
边栏推荐
- GBase 8c 注释信息函数
- 数字经济才是未来经济发展的核心
- 一些事情的思考
- 使用Gateway的流式api修改请求路径
- Lambda表达式和Stream流
- Machine learning how to achieve epidemic visualization -- epidemic data analysis and prediction practice
- 自定义类型:结构体,枚举,联合
- C language · pointer
- 企业运维实践-使用Aliyun容器镜像服务对海外gcr、quay仓库镜像进行镜像拉取构建
- Oracle RAC cluster file directory migration
猜你喜欢

Leetcode high frequency question 128. the longest continuous sequence, which is often tested in interviews with Internet companies

机器学习如何做到疫情可视化——疫情数据分析与预测实战

N32L43x Flash读\写\擦除操作总结

VLAN实验

Load balancing SLB

Matlab 44 animation gradient drawing programs

集合/容器

What is method and methodology: understand the underlying logic of self-improvement

总结:Prometheus存储

小散量化炒股记|量化系统中数据是源头,教你搭建一款普适的数据源框架
随机推荐
Interview question 01.05. Primary editing
企业运维实践-使用Aliyun容器镜像服务对海外gcr、quay仓库镜像进行镜像拉取构建
递归的使用:1.将平铺数组转为树 2.将树转化为平铺数组
处理数据 给数据换名字
The story of the third uncle
VLAN experiment
Interview question 01.06. string compression
26. Abstraction and template ideas
Machine learning how to achieve epidemic visualization -- epidemic data analysis and prediction practice
Docker builds MySQL master-slave locally
Blizzard Diablo 4 ps5 / PS4 beta added to Playstation database
##ELK日志分析系统搭建##
leetcode: 515. 在每个树行中找最大值
Lambda expressions and stream streams
递归相关习题
GBase 8c 服务器信号函数
Tencent cloud hiflow scene connector
GBase 8c 备份控制函数(四)
The storage cost is reduced by 80%. How does the cost management of youzan data middle office do?
物企大变局时代,SRM供应商采购系统助力企业打造物业采购数字化标杆