暂无图片
暂无图片
暂无图片
暂无图片
暂无图片

opengauss基础 ps_setting 查看内存配置

Server:CentOS Linux release 7.6.1810 (Core) (3.10.0-957.el7.x86_64)
openGauss:2.0.0 企业版 centos_x86_64
DataStudio:2.0.0 windows_x86_64

查看内存配置信息

postgres=# select name,setting,source from pg_settings where name like '%work_mem%'; name | setting | source ----------------------+---------+-------------------- maintenance_work_mem | 131072 | configuration file psort_work_mem | 524288 | default work_mem | 65536 | configuration file
postgres=# select name,short_desc,extra_desc from pg_settings where name like '%work_mem%'; name | short_desc | extr a_desc ----------------------+----------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------- maintenance_work_mem | Sets the maximum memory to be used for maintenance operations. | This includes operations such as VACUUM and CREATE INDEX. psort_work_mem | Sets the maximum memory to be used for partial sort. | This much memory can be used by each internal partial sort operation before switching to temporary disk files. work_mem | Sets the maximum memory to be used for query workspaces. | This much memory can be used by each internal sort operation and hash table before switching to temporary disk files. (3 rows)

配置文件

[omm@node1 ~]$ cd /opt/huawei/install/data/dn/ [omm@node1 dn]$ cat postgresql.conf | grep 'work_mem' work_mem = 64MB # min 64kB maintenance_work_mem = 128MB # min 1MB [omm@node1 dn]$

相关链接


欢迎各位同学一起来交流学习心得!

最后修改时间:2021-12-16 18:23:58
「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论