pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
To: Ryan Kelly <rpkelly22@gmail.com>
Cc: tom Tom <tom@tomforb.es>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6629: Creating a gist index fails with "too many LWLocks taken"
Date: Fri, 11 May 2012 13:07:03 +0300
Message-ID: <4FACE4C7.6070306@enterprisedb.com> (raw)
In-Reply-To: <20120508011540.GA28140@llserver.lakeliving.com>
References: <E1SQkyu-0004nP-IW@wrigleys.postgresql.org>
	<4FA7EC37.5070703@enterprisedb.com>
	<CAFNZOJM4OpDN562BDS5g6iJX+NOjTwPUXtfQg91ALVH60td5vg@mail.gmail.com>
	<20120508011540.GA28140@llserver.lakeliving.com>

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



view thread (18+ messages)  latest in thread

Message-ID: <4FACE4C7.6070306@enterprisedb.com>
Permalink:  ../4FACE4C7.6070306@enterprisedb.com/
Also on:    postgresql.org/message-id/4FACE4C7.6070306@enterprisedb.com

 · 

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: heikki.linnakangas@enterprisedb.com, rpkelly22@gmail.com, tom@tomforb.es
  Subject: Re: BUG #6629: Creating a gist index fails with "too many LWLocks taken"
  In-Reply-To: <4FACE4C7.6070306@enterprisedb.com>
  References: <E1SQkyu-0004nP-IW@wrigleys.postgresql.org> <4FA7EC37.5070703@enterprisedb.com> <CAFNZOJM4OpDN562BDS5g6iJX+NOjTwPUXtfQg91ALVH60td5vg@mail.gmail.com> <20120508011540.GA28140@llserver.lakeliving.com> <4FACE4C7.6070306@enterprisedb.com>

* 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