deadlocks - sharelocks on transactions

From: Tim McAuley <tech-lists(at)mothy(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: deadlocks - sharelocks on transactions
Date: 2004-01-07 11:59:30
Message-ID: 3FFBF4A2.6030104@mothy.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

I have a stored procedure that is causing deadlocks when called multiple
times synchronously. The odd issue is that the deadlock seems to be
happening on different threads waiting for locks on transactions. What
exactly is this transaction lock?

ERROR: deadlock detected
DETAIL: Process 1740 waits for ShareLock on transaction 1488; blocked
by process 1716.
Process 1716 waits for ShareLock on transaction 1490; blocked
by process 1740.

It's a little difficult to debug this issue when it's not identifying
which data accesses are causing the deadlocks.

Does anyone have any information that may help in tracking down the problem?

Many thanks,

Tim

Current set-up:

Postgresql 7.4.1 (Windows 2000, Cygwin) or
Postgresql 7.4 (Linux, Redhat 9)

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Christopher Browne 2004-01-07 13:19:21 Re: Paypal WAS: PostgreSQL speakers needed for OSCON
Previous Message Richard Huxton 2004-01-07 09:07:41 Re: Loading a dumped databse from cd