Getting problem when taking backup on database contains around 50 schema with each schema having around 100 tables.
pg_dump throwing below error suggesting that to increase max_locks_per_transaction
.
pg_dump: WARNING: out of shared memory
pg_dump: SQL command failed
pg_dump: Error message from server: ERROR: out of shared memory
HINT: You might need to increase max_locks_per_transaction.
pg_dump: The command was: SELECT tableoid, oid, prsname, prsnamespace, prsstart::oid, prstoken::oid, prsend::oid, prsheadline::oid, prslextype::oid FROM pg_ts_parser
An updated of max_locks_per_transaction
to 256 in postgresql.conf
did not solve the problem.
Are there any possibilities which can cause this problem?
Edited:(07 May, 2016)
Postgresql version = 9.1
Operating system = Ubuntu 14.04.2 LTS
shared_buffers
in postgresql.conf
= 2GB
Edited:(09 May, 2016)
My postgres.conf
maintenance_work_mem = 640MB
wal_buffers = 64MB
shared_buffers = 2GB
max_connections = 100
max_locks_per_transaction=10000