Thread: Transaction Rollback Error: DeadLock Detected

Transaction Rollback Error: DeadLock Detected

From
subhan alimy
Date:
Hello Everyone,


Here I have got and error of concurrent update,
Transaction Rollback Error: deadlock detected
process 4801 waits for sharelock on transaction 944461 blocked by process
4700.
process 4700 waits for sharelock on transaction 9444665 blocked by process
4801.
by default PostgreSQL server has to abort one transaction and proceed the
other one, in my case it did not.


Solutions will highly appreciated



--
View this message in context: http://postgresql.nabble.com/Transaction-Rollback-Error-DeadLock-Detected-tp5887760.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.


Re: Transaction Rollback Error: DeadLock Detected

From
Adrian Klaver
Date:
On 02/15/2016 11:44 PM, subhan alimy wrote:
> Hello Everyone,
>
>
> Here I have got and error of concurrent update,
> Transaction Rollback Error: deadlock detected
> process 4801 waits for sharelock on transaction 944461 blocked by process
> 4700.
> process 4700 waits for sharelock on transaction 9444665 blocked by process
> 4801.
> by default PostgreSQL server has to abort one transaction and proceed the
> other one, in my case it did not.

What version of Postgres?

What client was doing the updates?

What was the update sequence?

What did Postgres do?

Are there any applicable error messages before or after the above?


>
>
> Solutions will highly appreciated
>
>
>
> --
> View this message in context:
http://postgresql.nabble.com/Transaction-Rollback-Error-DeadLock-Detected-tp5887760.html
> Sent from the PostgreSQL - general mailing list archive at Nabble.com.
>
>


--
Adrian Klaver
adrian.klaver@aklaver.com