我一直在 PostgreSQL 服务器上执行某种密集模式删除和创建,
ERROR: out of shared memory
HINT: You might need to increase max_locks_per_transaction.
我需要增加 max_locks_per_transaction 但如何在 MAC OSX 中增加它
最佳答案
你可能会找到 ../data/postgresql.conf 文件,然后用记事本编辑,设置 max_locks_per_transaction = 1024 如果它看起来像#max_locks_per_transaction...你必须删除#。
它必须是这样的: max_locks_per_transaction = 1024 # min 10
保存并重启postgresql
关于macos - 如何增加 max_locks_per_transaction,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40654766/