Re: lock problem

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: <ruralhunter(at)gmail(dot)com>,<pgsql-admin(at)postgresql(dot)org>
Subject: Re: lock problem
Date: 2011-12-21 13:28:10
Message-ID: 4EF18A8A0200002500043F0A@gw.wicourts.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Rural Hunter wrote:

> I'm seeing connection hang issue these days. many concurrent
> connections are hanging on db. They basically do the same thing:
> update different rows in same table. The sql itself should run very
> fast as it's updating just one row based on an unique key.

> update article set tm_update=$

I don't see a WHERE clause, so it looks like you're updating the
whole table each time. Once a row is updated by one of the
transactions, others will block on attempts to update the same row
until the first transaction commits.

-Kevin

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Bèrto ëd Sèra 2011-12-21 13:51:14 Re: lock problem
Previous Message Rural Hunter 2011-12-21 07:55:18 lock problem