postgresql之shared_buffer

本文详细介绍了PostgreSQL的shared_buffers参数,用于设置数据库服务器的共享内存缓冲区大小。合理设置对于性能至关重要。内容包括shared_buffers的作用、与操作系统缓存的关系、配置建议、查看缓存内容和命中数的方法,以及如何根据使用情况调整大小。
摘要由CSDN通过智能技术生成

本文参考:https://www.cnblogs.com/wy123/p/13463806.html

https://www.cnblogs.com/zhangfx01/p/10438735.html

 

官网文档

shared_buffers (integer)

Sets the amount of memory the database server uses for shared memory buffers. The default is typically 32 megabytes (32MB), but might be less if your kernel settings will not support it (as determined during initdb). This setting must be at least 128 kilobytes. (Non-default values of BLCKSZ change the minimum.) However, settings significantly higher than the minimum are usually needed for good performance. This parameter can only be set at server start.

If you have a dedicated database server with 1GB or more of RAM, a reasona

  • 0
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值