Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id A533D9FBAFF for ; Tue, 31 Jul 2007 13:39:21 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 90516-07 for ; Tue, 31 Jul 2007 13:39:18 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from smtp.icemail.com (unknown [66.117.50.180]) by postgresql.org (Postfix) with ESMTP id 1B9949FBADE for ; Tue, 31 Jul 2007 13:39:17 -0300 (ADT) Received: from EXVS01.IceMAIL.com ([10.2.23.110] RDNS failed) by smtp.icemail.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 31 Jul 2007 12:35:41 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: Re: deadlock detected when calling function (Callfunction_name) Date: Tue, 31 Jul 2007 12:38:51 -0400 Message-ID: In-Reply-To: <20070731152806.GH5103@alvh.no-ip.org> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [PERFORM] deadlock detected when calling function (Callfunction_name) Thread-Index: AcfThvXOBReQKsZTR5SE9BMuvvRSgwACkwgg From: "Sachchida Ojha" To: "Alvaro Herrera" Cc: "Andreas Tille" , X-OriginalArrivalTime: 31 Jul 2007 16:35:41.0953 (UTC) FILETIME=[D5D3D710:01C7D390] X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200707/442 X-Sequence-Number: 26126 8.2.3 Thanks Regards Sachchida N Ojha sojha@secure-elements.com Secure Elements Incorporated 198 Van Buren Street, Suite 110 Herndon Virginia 20170-5338 USA http://www.secure-elements.com/ 800-709-5011 Main 703-709-2168 Direct 703-709-2180 Fax This email message and any attachment to this email message is intended only for the use of the addressee(s) named above. If the reader of this message is not the intended recipient or the employee or agent responsible for delivering the message to the intended recipient(s), please note that any distribution or copying of this communication is strictly prohibited. If you have received this email in error, please notify me immediately and delete this message. Please note that if this email contains a forwarded message or is a reply to a prior message, some or all of the contents of this message or any attachments may not have been produced by the sender. -----Original Message----- From: Alvaro Herrera [mailto:alvherre@commandprompt.com]=20 Sent: Tuesday, July 31, 2007 11:28 AM To: Sachchida Ojha Cc: Andreas Tille; pgsql-performance@postgresql.org Subject: Re: [PERFORM] deadlock detected when calling function (Callfunction_name) Sachchida Ojha wrote: >=20 > 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?=20 >=20 > This problem did not occur consistently.=20 >=20 > Error log >=20 > 2007-07-30 19:09:12,140 ERROR [se.em.asset.persistence.AssetUpdate] > SQLException calling procedure{? =3D call update_asset_dependents(?,?,?)} > for asset id 36 >=20 > org.postgresql.util.PSQLException: ERROR: deadlock detected >=20 > 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? --=20 Alvaro Herrera http://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc.