Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 15A291E8276A for ; Wed, 11 Jan 2012 08:36:54 -0400 (AST) Received: from mail.telenet.ru ([87.224.128.3] helo=k66.ru) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RkxQB-0000bL-HO for pgsql-bugs@postgresql.org; Wed, 11 Jan 2012 12:36:53 +0000 Received: from [87.224.188.131] (account buddy@telenet.ru HELO minimachine.hq.telenet.ru) by k66.ru (CommuniGate Pro SMTP 5.1.16) with ESMTPSA id 725387; Wed, 11 Jan 2012 18:36:38 +0600 Date: Wed, 11 Jan 2012 18:36:37 +0600 From: Andrew Alcheyev Reply-To: Andrew Alcheyev Organization: Telenet-Service Ltd. X-Priority: 3 (Normal) Message-ID: <1363182685.20120111183637@telenet.ru> To: Heikki Linnakangas , Dan Ports CC: pgsql-bugs@postgresql.org Subject: Re: FreeBSD 9.0/amd64, PostgreSQL 9.1.2, pgbouncer 1.4.2: segmentation fault In-Reply-To: <4F0C6318.9010405@enterprisedb.com> References: <976279052.20120110212229@telenet.ru> <4F0C6318.9010405@enterprisedb.com> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: 8bit X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201201/77 X-Sequence-Number: 32144 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@postgresql.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.