Out of shared memory while creating a backup with pg_dump - Mailing list pgsql-admin

From
Subject Out of shared memory while creating a backup with pg_dump
Date
Msg-id D5359E0908278642BB1747131D62694DA86A0460@AUSMXMBX01.mrws.biz
Whole thread Raw
Responses Re: Out of shared memory while creating a backup with pg_dump  (Shreeyansh dba <shreeyansh2014@gmail.com>)
Re: Out of shared memory while creating a backup with pg_dump  (Raghu Ram <raghuchennuru@gmail.com>)
Re: Out of shared memory while creating a backup with pg_dump  (Kevin Grittner <kgrittn@ymail.com>)
List pgsql-admin
Hi,

while creating a backup with pg_dump and parallel write accesses to the database following error occured:
2014-09-24 07:46:46 ... ERROR:  out of shared memory
2014-09-24 07:46:46 ... HINT:  You might need to increase max_pred_locks_per_transaction.

I´m running postgresql 9.3.4 on Ubuntu 12.04 server. The server has 8GB RAM and 4 cores.
/proc/sys/kernel/shmmax: 2147483648
/proc/sys/kernel/shmall: 2097152

The original configuration was changed in only a few relevant points:
* shared_buffers = 128MB
* work_mem = 10MB

We run a hot standby slave, therefore the following changes were necessary:
* wal_level = hot_standby
* max_wal_senders = 1
* wal_keep_segments = 64
* hot_standby = on
* hot_standby_feedback = on


I didn´t understand the HINT:
You might need to increase max_pred_locks_per_transaction.

What is the reason for the error, that the shared memory ran out, or that the number of predicate locks is too small?
If i increase max_pred_locks_per_transaction i get probably even faster an "out of shared memory" error.

What is the best way to fix the problem?

The database consists of approximately 150 tables and is about 140GB in size. Where one table with 130 GB (~280000000
rows)requires the most space. 

Please help me to troubleshoot this severe problem. I will feedback any required information.

Thanks in advance
Christian

________________________________
manroland web systems GmbH -- Managing Director: Joern Gossé
Registered Office: Augsburg -- Trade Register: AG Augsburg -- HRB-No.: 26816 -- VAT: DE281389840

Confidentiality note:
This eMail and any files transmitted with it are confidential and intended solely for the use of the individual or
entityto whom they are addressed. If you are not the intended recipient, you are hereby notified that any use or
disseminationof this communication is strictly prohibited. If you have received this eMail in error, then please delete
thiseMail. 

! Please consider your environmental responsibility before printing this eMail !
________________________________


pgsql-admin by date:

Previous
From: Axel Rau
Date:
Subject: [RESOLVED]Re: Cert verify failed on client side after renewal of certs
Next
From: Shreeyansh dba
Date:
Subject: Re: Out of shared memory while creating a backup with pg_dump