Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id BEF9F17B105B for ; Fri, 11 May 2012 07:07:22 -0300 (ADT) Received: from exprod7og126.obsmtp.com ([64.18.2.206]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SSmkr-0007LR-27 for pgsql-bugs@postgresql.org; Fri, 11 May 2012 10:07:22 +0000 Received: from mail-lpp01m010-f53.google.com ([209.85.215.53]) (using TLSv1) by exprod7ob126.postini.com ([64.18.6.12]) with SMTP ID DSNKT6zkyyIIvFajonU4A5nCojQknJApwgcF@postini.com; Fri, 11 May 2012 03:07:20 PDT Received: by lagu2 with SMTP id u2so1925012lag.26 for ; Fri, 11 May 2012 03:07:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding :x-gm-message-state; bh=HKCqV56dTJkJ1W375w31nt3O/6aWYyb7C9AwA/yyOKg=; b=N2UgVvbbTVifsGLtAs9RNHJ/eYPb5F3GRZR3Ex2yTVgu3IuLIQLCeX8Pu24A3iuaNg +iBHDzyIFzyFfBqFomvLAmgx2OREeZQs9tplEM9tJeH0kxC8KxQEKQGBTsO/YqOkxV/a fyP3MQMQHTiU1VO3p1pQpkYtW0kWc/Syoq7wNKEXYwO+fwQ4Nu07xsuUlefuAVV4bPcD RtJjlTtTlm0UEq1DFLbz8vGs3PLjr7oNAEIGymZdRmkF0Sr1W6ULrKEKtkTGUwXWBz0F ZqCFkw6fmDC2/RJJCZF4P/bS6ELi1ioRqZl/QwqrGkKKmluHcd5nZoqGedfIeTwS4XiB VxdA== Received: by 10.112.83.136 with SMTP id q8mr3255326lby.60.1336730826022; Fri, 11 May 2012 03:07:06 -0700 (PDT) Received: from [192.168.1.102] (dsl-hkibrasgw2-ff6cc300-200.dhcp.inet.fi. [88.195.108.200]) by mx.google.com with ESMTPS id b5sm11163781lbg.15.2012.05.11.03.07.04 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 11 May 2012 03:07:05 -0700 (PDT) Message-ID: <4FACE4C7.6070306@enterprisedb.com> Date: Fri, 11 May 2012 13:07:03 +0300 From: Heikki Linnakangas User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.3) Gecko/20120329 Icedove/10.0.3 MIME-Version: 1.0 To: Ryan Kelly CC: tom Tom , pgsql-bugs@postgresql.org Subject: Re: BUG #6629: Creating a gist index fails with "too many LWLocks taken" References: <4FA7EC37.5070703@enterprisedb.com> <20120508011540.GA28140@llserver.lakeliving.com> In-Reply-To: <20120508011540.GA28140@llserver.lakeliving.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQlT0gQJn4pgHpiwVu6lqvkO2b9nP/CQLkXkFX4nyMp20Wn72DwuwCvKWHSLFIYcSPfam9G0 X-Pg-Spam-Score: -4.2 (----) X-Archive-Number: 201205/58 X-Sequence-Number: 33029 On 08.05.2012 04:15, Ryan Kelly wrote: > On Mon, May 07, 2012 at 05:31:40PM +0100, tom Tom wrote: >> Nope, this was just a benchmark script that caused this, any sane person >> would use an intbig index instead I guess. A better error message would be >> nice though, I was pretty confused when this happened. >> >> This can also bring down postgresql - it happens occasionally and causes >> the server to terminate. Someone in #postgresql said this happens when the >> failure to acquire the lock occurs in a "critical section"? That might be >> cause for concern. > Occasionally, it causes a PANIC instead of an ERROR. I have the logs > from the IRC session if anyone is in need of them. Good point. I wonder if we should reserve a few of the lwlock "slots" for critical sections, to make this less likely to happen. Not only in this case, but in general. We haven't seen this problem often, but it would be quite trivial to reserve a few slots. -- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com