How to increase max_locks_per_transaction

北慕城南 提交于 2019-12-22 01:51:37

问题


I've been performing kind of intensive schema dropping and creating over a PostgreSQL server,

ERROR: out of shared memory

HINT: You might need to increase max_locks_per_transaction.

I need to increase max_locks_per_transaction but how can i increase it in MAC OSX


回答1:


you might find ../data/postgresql.conf file, then edit with notepad, set max_locks_per_transaction = 1024 if it looks like # max_locks_per_transaction... you must remove #.

it must look like that: max_locks_per_transaction = 1024 # min 10

than save it and restart postgresql




回答2:


It is a setting in your postgresql.conf if you do not know where that file is run SHOW config_file; on an sql prompt/window.

Then when you have modified that file restart postgresql, I don't know how you do that on MacOS a reboot will work of course.



来源:https://stackoverflow.com/questions/40654766/how-to-increase-max-locks-per-transaction

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!