Re: update table with row locking - Mailing list pgsql-general

From Scott Marlowe
Subject Re: update table with row locking
Date
Msg-id 1103832555.3374.25.camel@state.g2switchworks.com
Whole thread Raw
In response to update table with row locking  (Mark <sendmailtomark@yahoo.com>)
List pgsql-general
On Thu, 2004-12-23 at 13:56, Mark wrote:
> Hi,
> Is it possible to lock row(s) when updating a table, so another call
> for update( from different session) will be rejected and to be on
> hold until lock get released ?

Generally the update itself will lock the table from other updates until
your transaction either commits or rolls back.  OR are you looking for
something like select for update to lock a row to be used to update
another row?


pgsql-general by date:

Previous
From: Mark
Date:
Subject: update table with row locking
Next
From: Michael Fuhr
Date:
Subject: Re: update table with row locking