检查配置文件值。
找到CN/DN的guc参数配置文件postgresql.conf.
查找对应配置项。
示例命令:
grep max_active_statements /srv/BigData/mppdb/data1/coordinator/postgresql.conf
grep max_active_statements /srv/BigData/mppdb/data1/master1/postgresql.con
检查数据库配置值。
登录到对应CN/DN数据库,通过show命令查看对应配置项。
[omm@linux245 bin]\>gsql -d rtdb -p 25308 -r
gsql (Gauss200 OLAP V100R006C10 build 12280 compiled at 2018-07-06 19:48:16)
Non-SSL connection (SSL connection is recommended when requiring high-security)
Type ""help"" for help.
rtdb=# show max_active_statements;
max_active_statements
-----------------------
-1
(1 row)
rtdb=#
设置guc参数,并且动态生效设置方式:
gs_guc reload -Z coordinator -N all -I all -c ""max_active_statements=10""
设置guc参数,需要重启集群生效设置方式:
gs_guc set -Z coordinator -N all -I all -c ""max_active_statements=10""
「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。