Re: Will UPDATE lock if FROM refers to target table? - Mailing list pgsql-general

From Albe Laurenz
Subject Re: Will UPDATE lock if FROM refers to target table?
Date
Msg-id D960CB61B694CF459DCFB4B0128514C22D6E6E@exadv11.host.magwien.gv.at
Whole thread Raw
In response to Will UPDATE lock if FROM refers to target table?  ("Carlo Stonebanks" <stonec.register@sympatico.ca>)
Responses Re: Will UPDATE lock if FROM refers to target table?
List pgsql-general
Carlo Stonebanks wrote:
> If I do an update using the FROM clause, and that clause has a sub-query
> that refers to the table I am updating, will I be waiting for ever for a
> table to lock to release?

You cannot block yourself with a lock, if that's what you mean.
The locks your session takes out will only block other sessions.

Yours,
Laurenz Albe

pgsql-general by date:

Previous
From: Tomasz Ostrowski
Date:
Subject: Re: RES: 8.2.4 selects make applications wait indefinitely
Next
From: Syan Tan
Date:
Subject: Re: atomic commit;begin for long running transactions , in combination with savepoint.