locking problems - Mailing list pgsql-general

From Jonathan Ellis
Subject locking problems
Date
Msg-id 001b01c1cd22$c62cee20$0200000a@Jonathan
Whole thread Raw
Responses Re: locking problems  (Martijn van Oosterhout <kleptog@svana.org>)
List pgsql-general
I guess I don't understand locking in PG...  I have a simple statement that
is deadlocking:

update minions set hp = hp_max

there are no triggers or rules on this table.  Even when I try

lock table minions in row share mode

it still deadlocks.  How can a statement like this deadlock?  Doesn't it
acquire all necessary locks atomically?

-Jonathan


pgsql-general by date:

Previous
From: "Pirtea Calin"
Date:
Subject: Re: limit /offset
Next
From: Christian von Kietzell
Date:
Subject: Re: How to get the name of a table's primary key?