pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: Dan Ports <drkp@csail.mit.edu>
To: Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
To: Andrew Alcheyev <buddy@telenet.ru>
Cc: pgsql-bugs@postgresql.org
Subject: Re: FreeBSD 9.0/amd64, PostgreSQL 9.1.2, pgbouncer 1.4.2: segmentation fault
Date: Wed, 11 Jan 2012 09:26:48 -0600
Message-ID: <4F0D55D80200002500044695@gw.wicourts.gov> (raw)
In-Reply-To: <1363182685.20120111183637@telenet.ru>
References: <976279052.20120110212229@telenet.ru>
	<4F0C6318.9010405@enterprisedb.com>
	<1363182685.20120111183637@telenet.ru>

Andrew Alcheyev <buddy@telenet.ru> 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



view thread (6+ messages)  latest in thread

Message-ID: <4F0D55D80200002500044695@gw.wicourts.gov>
Permalink:  ../4F0D55D80200002500044695@gw.wicourts.gov/
Also on:    postgresql.org/message-id/4F0D55D80200002500044695@gw.wicourts.gov

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: Kevin.Grittner@wicourts.gov, drkp@csail.mit.edu, heikki.linnakangas@enterprisedb.com, buddy@telenet.ru
  Subject: Re: FreeBSD 9.0/amd64, PostgreSQL 9.1.2, pgbouncer 1.4.2: segmentation fault
  In-Reply-To: <4F0D55D80200002500044695@gw.wicourts.gov>
  References: <976279052.20120110212229@telenet.ru> <4F0C6318.9010405@enterprisedb.com> <1363182685.20120111183637@telenet.ru> <4F0D55D80200002500044695@gw.wicourts.gov>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox