Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 115989FB609 for ; Tue, 31 Jul 2007 12:28:19 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 70889-02 for ; Tue, 31 Jul 2007 12:28:12 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from lists.commandprompt.com (host-254.commandprompt.net [207.173.203.254]) by postgresql.org (Postfix) with ESMTP id 251FE9FB5CD for ; Tue, 31 Jul 2007 12:28:12 -0300 (ADT) Received: from perhan.alvh.no-ip.org ([190.95.0.211]) (authenticated bits=0) by lists.commandprompt.com (8.13.7/8.13.6) with ESMTP id l6VFSBBk009484; Tue, 31 Jul 2007 08:28:12 -0700 Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 949D847C4B; Tue, 31 Jul 2007 11:28:06 -0400 (CLT) Date: Tue, 31 Jul 2007 11:28:06 -0400 From: Alvaro Herrera To: Sachchida Ojha Cc: Andreas Tille , pgsql-performance@postgresql.org Subject: Re: deadlock detected when calling function (Call function_name) Message-ID: <20070731152806.GH5103@alvh.no-ip.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.16 (2007-06-11) X-Virus-Scanned: ClamAV 0.91.1/3834/Tue Jul 31 02:25:17 2007 on projects.commandprompt.com X-Virus-Status: Clean X-Greylist: Sender succeded SMTP AUTH authentication, not delayed by milter-greylist-1.6 (lists.commandprompt.com [192.168.2.159]); Tue, 31 Jul 2007 08:28:13 -0700 (PDT) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200707/440 X-Sequence-Number: 26124 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.