Thread: Does Postgresql deadlock?

Does Postgresql deadlock?

From
T F
Date:
Just wondering if Postgresql deadlocks.  If so how does it handle them?
Just wondering because MS SQL Server arbitrarily picks a process that is
involved in the deadlock and kills it.

T. F.


Re: Does Postgresql deadlock?

From
Bruce Momjian
Date:
> Just wondering if Postgresql deadlocks.  If so how does it handle them?
> Just wondering because MS SQL Server arbitrarily picks a process that is
> involved in the deadlock and kills it.

It detects them, and aborts one of the transactions.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026