pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@commandprompt.com>
To: Sachchida Ojha <sojha@secure-elements.com>
Cc: Andreas Tille <tillea@rki.de>
Cc: pgsql-performance@postgresql.org
Subject: Re: deadlock detected when calling function (Call function_name)
Date: Tue, 31 Jul 2007 11:28:06 -0400
Message-ID: <20070731152806.GH5103@alvh.no-ip.org> (raw)
In-Reply-To: <E099DB9EF394534CBA0F62ED03CF3BBF0596FC61@EXVS01.IceMAIL.com>
References: <Pine.LNX.4.64.0707311529490.15955@wr-linux02>
	<E099DB9EF394534CBA0F62ED03CF3BBF0596FC61@EXVS01.IceMAIL.com>

Sachchida Ojha wrote:
> 
> Hello,
> I am getting following error from my application. Can any body tell me
> how to find the process name and transaction details when the deadlock
> occurred? 
> 
> This problem did not occur consistently. 
> 
> Error log
> 
> 2007-07-30 19:09:12,140 ERROR [se.em.asset.persistence.AssetUpdate]
> SQLException calling procedure{? = call update_asset_dependents(?,?,?)}
> for asset id 36
> 
> org.postgresql.util.PSQLException: ERROR: deadlock detected
> 
>   Detail: Process 21172 waits for ShareLock on transaction 5098759;
> blocked by process 21154.
> Process 21154 waits for ShareLock on transaction 5098760; blocked by
> process 21172.

What Postgres version is this?

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.



view thread (3+ messages)  latest in thread

Message-ID: <20070731152806.GH5103@alvh.no-ip.org>
Permalink:  ../20070731152806.GH5103@alvh.no-ip.org/
Also on:    postgresql.org/message-id/20070731152806.GH5103@alvh.no-ip.org

 · 

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-performance@postgresql.org
  Cc: alvherre@commandprompt.com, sojha@secure-elements.com, tillea@rki.de
  Subject: Re: deadlock detected when calling function (Call function_name)
  In-Reply-To: <20070731152806.GH5103@alvh.no-ip.org>
  References: <Pine.LNX.4.64.0707311529490.15955@wr-linux02> <E099DB9EF394534CBA0F62ED03CF3BBF0596FC61@EXVS01.IceMAIL.com> <20070731152806.GH5103@alvh.no-ip.org>

* 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