X-Original-To: pgsql-admin@postgresql.org Received: from megazone.bigpanda.com (megazone.bigpanda.com [63.150.15.178]) by postgresql.org (Postfix) with ESMTP id B330647611A for ; Thu, 6 Mar 2003 11:01:24 -0500 (EST) Received: by megazone.bigpanda.com (Postfix, from userid 1001) id 42736D60F; Thu, 6 Mar 2003 08:01:29 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by megazone.bigpanda.com (Postfix) with ESMTP id 382EE5C0A; Thu, 6 Mar 2003 08:01:29 -0800 (PST) Date: Thu, 6 Mar 2003 08:01:29 -0800 (PST) From: Stephan Szabo To: "A.Bhuvaneswaran" Cc: Subject: Re: deadlock detected during insert In-Reply-To: Message-ID: <20030306075909.I79234-100000@megazone23.bigpanda.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200303/49 X-Sequence-Number: 7697 On Thu, 6 Mar 2003, A.Bhuvaneswaran wrote: > Hi, > > I am using pgsql 7.2.3 on redhat linux 7.3. > > I am facing the deadlock detected error in transaction during insert > command. How can i fix this? If you're using foreign keys on the table that you're inserting into it's possible that it's waiting on another transaction doing an insert to the same key or on a change to the referenced table.