Re: Locking question?

From: "Shoaib Mir" <shoaibmir(at)gmail(dot)com>
To: "Shoaib Mir" <shoaibmir(at)gmail(dot)com>, PostgreSQL <pgsql-general(at)postgresql(dot)org>
Subject: Re: Locking question?
Date: 2007-01-29 20:19:55
Message-ID: bf54be870701291219l206cb980xd8d147bb90aa3fa6@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Thank you Alvaro :)

-----------------
Shoaib Mir
EnterpriseDB (www.enterprisedb.com)

On 1/30/07, Alvaro Herrera <alvherre(at)commandprompt(dot)com> wrote:
>
> Shoaib Mir wrote:
> > While debugging an application, I just wanted to confirm from the list
> here:
> >
> > Suppose I have a long running transaction which has a few updates and
> > inserts running on some specific tables which means it has acquired
> > Exclusive locks too during the transaction on specific table but if just
> > before commit the client app crashes and the commit is never sent, will
> the
> > Exclusive locks be automatically released?
>
> Yes (assuming the backend dies in the process, which may not happen if
> the app dies silently and while not waiting for anything from the
> server).
>
> --
> Alvaro Herrera
> http://www.CommandPrompt.com/
> The PostgreSQL Company - Command Prompt, Inc.
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2007-01-29 20:37:14 Re: dependency ?
Previous Message shakahshakah@gmail.com 2007-01-29 20:14:47 Re: VACUUM ANALYZE taking a long time, %I/O and %CPU very low