Skip site navigation (1) Skip section navigation (2)

Re: row-level deadlock problem

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Martijn van Oosterhout <kleptog(at)svana(dot)org>
Cc: Kamil Kaczkowski <kamil(at)kamil(dot)eisp(dot)pl>,pgsql-general(at)postgresql(dot)org
Subject: Re: row-level deadlock problem
Date: 2004-11-27 17:58:36
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-general
Martijn van Oosterhout <kleptog(at)svana(dot)org> writes:
> Well, there has to be something, since an UPDATE in Read Committed mode
> simply doesn't have any locks that can deadlock.

You're mistaken; it takes a row lock on each row it updates.  I'm not
sure why the two UPDATEs are visiting the same rows in different orders,
but if they do the failure is certainly possible.

			regards, tom lane

In response to


pgsql-general by date

Next:From: Tom LaneDate: 2004-11-27 18:14:55
Subject: Re: how many JOINs ?
Previous:From: Michael FuhrDate: 2004-11-27 17:50:47
Subject: Re: Can one alter the format of a numeric column?

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group