Does Postgresql deadlock?

Started by T Fover 25 years ago2 messagesgeneral
Jump to latest
#1T F
torford@hotmail.nospam.com

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.

#2Bruce Momjian
bruce@momjian.us
In reply to: T F (#1)
Re: Does Postgresql deadlock?

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