在PostgreSQL的MAC OS X 10.6上设置SHMMAX等值

前端之家收集整理的这篇文章主要介绍了在PostgreSQL的MAC OS X 10.6上设置SHMMAX等值前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我试图在本地机器上启动Postgresql服务器。
但是我收到一条错误消息:
FATAL:  could not create shared memory segment: Invalid argument
DETAIL:  Failed system call was shmget(key=5432001,size=9781248,03600).
HINT:  This error usually means that Postgresql's request for a shared memory segment exceeded your kernel's SHMMAX parameter.  You can either reduce the request size or reconfigure the kernel with larger SHMMAX.  To reduce the request size (currently 9781248 bytes),reduce Postgresql's shared_buffers parameter (currently 1024) and/or its max_connections parameter (currently 13).
If the request size is already small,it's possible that it is less than your kernel's SHMMIN parameter,in which case raising the request size or reconfiguring SHMMIN is called for.
The Postgresql documentation contains more information about shared memory configuration.

搜索并查看文档,但是我尝试关于设置kern.sysv.shmmax和kern.sysv.shmall的一切工作正常。
雪豹的正确设置是什么?我安装postgres与macports。

警告:这个答案已被OS X的较新版本所取消。请参考Paul Legato下面的答案。

在Mac OS X中,您无法在系统启动后更改shmmax。您需要编辑/ etc / rc或/etc/sysctl.conf,并记住它需要4096的倍数。
http://www.postgresql.org/docs/8.4/static/kernel-resources.html

原文链接:https://www.f2er.com/postgresql/193268.html

猜你在找的Postgre SQL相关文章