加入收藏 | 设为首页 | 会员中心 | 我要投稿 核心网 (https://www.hxwgxz.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 建站 > 正文

postgresql中几个超时参数的用法说明

发布时间:2021-06-18 15:47:55 所属栏目:建站 来源:互联网
导读:今天整理了下 postgresql 几个 timeout 参数 select version(); version ----------------------------------------------------------------------------------

bash-4.1$ pwd
/DATA/data_utl
bash-4.1$ ls
base pgbin pg_ident.conf pg_notify pg_stat_tmp pg_twophase postgresql.conf postmaster.opts
dbms_pipe pg_clog pg_log pg_serial pg_subtrans PG_VERSION postgresql.conf.20191119 postmaster.pid
global pg_hba.conf pg_multixact pg_snapshots pg_tblspc pg_xlog postgresql.conf.bak utlp.sql
vi postgresql.conf

将其中 deadlock_timeout 配置修改为1s

(8)重新加载数据库

bash-4.1$ ./pg_ctl reloadserver signaled

(9)查看该参数已生效

edb=# show deadlock_timeout;
deadlock_timeout
1s
(1 row)

退出

1edb=# q

第9步也可通过重启数据库生效

停止指令:

1./pg_ctl stop -m fast

(编辑:核心网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

热点阅读