Re: Update / Lock (and ShareLock) question

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Augustin Amann <augustin(at)waw(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Update / Lock (and ShareLock) question
Date: 2008-07-11 14:13:52
Message-ID: 3165.1215785632@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Augustin Amann <augustin(at)waw(dot)com> writes:
> During lock, we could see things like this in log file:
> Process 5556 waits for ShareLock on transaction 14910066; blocked by
> process 4940.

What that really means is that the first process is waiting for a row
lock that's held by the second one --- that is, it's trying to update a
row that the second transaction has updated and not yet committed.

> Why waiting update are not simply queued ?

Uh, that's exactly what's happening.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Augustin Amann 2008-07-11 14:23:36 Re: Update / Lock (and ShareLock) question
Previous Message Adam Rich 2008-07-11 14:00:25 Re: Need help with constraint to prevent overlaps