Re: FreeBSD 9.0/amd64, PostgreSQL 9.1.2, pgbouncer 1.4.2: segmentation fault

From: Andrew Alcheyev <buddy(at)telenet(dot)ru>
To: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>, Dan Ports <drkp(at)csail(dot)mit(dot)edu>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: FreeBSD 9.0/amd64, PostgreSQL 9.1.2, pgbouncer 1.4.2: segmentation fault
Date: 2012-01-11 12:36:37
Message-ID: 1363182685.20120111183637@telenet.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Hello!

On Tuesday, January 10, 2012, 10:11:04 PM you wrote:

HL> That clearly looks like a bug in the SSI feature, introduced in
HL> PostgreSQL 9.1.

HL> This looks superficically similar to the bug that Dan Ports spotted on
HL> Friday:
HL> http://www.mail-archive.com/pgsql-hackers(at)postgresql(dot)org/msg190135.html.
HL> If you can reproduce the issue easily, could you try the patch he posted
HL> and see if it fixes it?

I had applied the patch suggested and it fixed backend crashes, at
least for a while - the server didn't crash for the first half of
today. So I think that the patch fixes my situation. Unfortunately, it
fixes only half of my problem.

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.

In my first letter I forgot to mention that the client has multiple
instances and they query the server at the same time. But what it is
interesting that this error has been reported to them more or less
simultaneously.

To repeat myself, if I set the client's variable
"default_transaction_isolation" to "read committed", then the error
disappers.

So what should I do? Do I need to increase
"max_pred_locks_per_transaction" in postgresql.conf?
And how can I calculate desired value?

With the best regards, Andrew.

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Kevin Grittner 2012-01-11 15:13:19 Re: BUG #6391: insert does not insert correct value
Previous Message naveen 2012-01-11 09:31:41 Postgres Backup and Restore