Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 0BC81989B4D for ; Wed, 11 Jan 2012 11:27:17 -0400 (AST) Received: from gwmta.wicourts.gov ([165.219.244.99] helo=gw.wicourts.gov) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Rl053-0004Zz-QK for pgsql-bugs@postgresql.org; Wed, 11 Jan 2012 15:27:16 +0000 Received: from Courts-MTA by gw.wicourts.gov with Novell_GroupWise; Wed, 11 Jan 2012 09:26:59 -0600 Message-Id: <4F0D55D80200002500044695@gw.wicourts.gov> X-Mailer: Novell GroupWise Internet Agent 8.0.1 Date: Wed, 11 Jan 2012 09:26:48 -0600 From: "Kevin Grittner" To: "Dan Ports" , "Heikki Linnakangas" , "Andrew Alcheyev" Cc: Subject: Re: FreeBSD 9.0/amd64, PostgreSQL 9.1.2, pgbouncer 1.4.2: segmentation fault References: <976279052.20120110212229@telenet.ru> <4F0C6318.9010405@enterprisedb.com> <1363182685.20120111183637@telenet.ru> In-Reply-To: <1363182685.20120111183637@telenet.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Pg-Spam-Score: -4.2 (----) X-Archive-Number: 201201/82 X-Sequence-Number: 32149 Andrew Alcheyev wrote: > Well, it does good and the backend hasn't crashed yet, but the > client is still experiencing query problems at some point (not > far, I guess, from where its backend would segfault without the > patch). This time it encounters the following error from the > backend: > > ERROR: out of shared memory > HINT: You might need to increase max_pred_locks_per_transaction. I noticed that you are using prepared transactions. Do you have any lingering transactions prepared but not committed or rolled back? (You can look in pg_prepared_xacts, and see when they were prepared.) > So what should I do? Do I need to increase > "max_pred_locks_per_transaction" in postgresql.conf? Maybe, but let's rule out other problems first. > And how can I calculate desired value? You would need to review pg_locks under load to get a handle on that. I don't think anyone has devised any generalized formula yet, but if we rule out other problems, I'd be happy to review your lock situation and make suggestions. -Kevin