Skip to content

Postgres transaction lock limit #263

Answered by varl
varl asked this question in Gotchas
Discussion options

You must be logged in to vote

Copied from the original post

Resolution

To avoid this issue, the Postgress server must be restarted with the max_locks_per_transaction increased. For instance, you can run postgres -c max_locks_per_transaction=100 or set the same in the config file (i.e. /etc/postgresql/9.1/main/postgresql.conf). 100 should be sufficient, though higher limits are possible. Server memory use may increase when this setting is modified.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by varl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant