pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Greg Stark <gsstark@mit.edu>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Greg Stark <gsstark@mit.edu>
Cc: Brendan Duddridge <brendan@clickspace.com>
Cc: PostgreSQL Performance <pgsql-performance@postgresql.org>
Subject: Re: App very unresponsive while performing simple update
Date: 28 May 2006 13:55:54 -0400
Message-ID: <87slmum3th.fsf@stark.xeocode.com> (raw)
In-Reply-To: <17733.1148832292@sss.pgh.pa.us>
References: <961F6F02-4B00-494C-B071-6DF76A305C14@clickspace.com>
	<21B15664-F4EE-462C-88B4-EEEB2B4A979F@clickspace.com>
	<874pzanvk6.fsf@stark.xeocode.com>
	<17733.1148832292@sss.pgh.pa.us>

Tom Lane <tgl@sss.pgh.pa.us> writes:

> Greg Stark <gsstark@mit.edu> writes:
> > What queries are those two processes executing? And what foreign keys do you
> > have on the product table or elsewhere referring to the product table? And
> > what indexes do you have on those columns?
> 
> And what PG version is this?  Alvaro fixed the
> foreign-keys-take-exclusive-locks problem in 8.1 ...

Except I don't think this is taking an exclusive lock at all. The original
post had the deadlock detection fire on a SharedLock. I think the other
process is also an update and is holding an exclusive lock while also
trying to acquire a SharedLock for a foreign key column.

-- 
greg




view thread (18+ messages)  latest in thread

Message-ID: <87slmum3th.fsf@stark.xeocode.com>
Permalink:  ../87slmum3th.fsf@stark.xeocode.com/
Also on:    postgresql.org/message-id/87slmum3th.fsf@stark.xeocode.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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: gsstark@mit.edu, tgl@sss.pgh.pa.us, brendan@clickspace.com
  Subject: Re: App very unresponsive while performing simple update
  In-Reply-To: <87slmum3th.fsf@stark.xeocode.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