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进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。
评论
相关阅读
2025年3月国产数据库大事记
墨天轮编辑部
927次阅读
2025-04-03 15:21:16
MogDB 发布更新,解决 openGauss 数据库在长事务情况下Ustore表膨胀问题
MogDB
292次阅读
2025-04-17 10:41:41
openGauss 7.0.0-RC1 版本正式发布!
Gauss松鼠会
214次阅读
2025-04-01 12:27:03
openGauss 7.0.0-RC1 版本体验:一主一备快速安装指南
孙莹
194次阅读
2025-04-01 10:30:07
MogDB 发布更新,解决 openGauss 数据库在长事务情况下Ustore表膨胀问题
云和恩墨
191次阅读
2025-04-16 09:52:02
GitCode 成 openGauss 新归宿,国产开源数据库里程碑事件
严少安
139次阅读
2025-04-27 11:37:53
鲲鹏RAG一体机解决方案正式发布 openGauss DataVec向量数据库助力DeepSeek行业应用
Gauss松鼠会
127次阅读
2025-03-31 10:00:29
荣誉时刻!openGauss认证证书快递已发,快来看看谁榜上有名!
墨天轮小教习
123次阅读
2025-04-23 17:39:13
openGauss6.0.0适配操作系统自带的软件,不依赖三方库
来杯拿铁
80次阅读
2025-04-18 10:49:53
opengauss使用gs_probackup进行增量备份恢复
进击的CJR
70次阅读
2025-04-09 16:11:58