Re: Detecting table/row locks

From: Joshua Daniel Franklin <joshua(at)iocc(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: Detecting table/row locks
Date: 2002-12-03 22:43:16
Message-ID: Pine.LNX.4.44.0212031639390.15269-100000@iocc.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On Wed, 27 Nov 2002, Joshua Daniel Franklin wrote:
> Is there a quick SQL way to check if a certain table
> (or row) is locked?
>
> I see that an UPDATE will just block until the previous
> lock is removed.

I think this question I asked earlier before reading more
is a misunderstanding of how SQL works. Locking is not to
prevent others from being able to modify rows before seeing
how they have changed, but to enforce an ordering.

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message John Sklavounos 2002-12-03 22:45:04 Help! Lost functions
Previous Message Devinder K Rajput 2002-12-03 22:17:40 Re: Copy entire file as one field