Re: incomplete transaction keeps table locked?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: gherson(at)snet(dot)net (George Herson)
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: incomplete transaction keeps table locked?
Date: 2001-05-23 19:19:40
Message-ID: 16499.990645580@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

gherson(at)snet(dot)net (George Herson) writes:
> Are there any circumstances when exiting a PHP web script
> where you've started a transaction (with Begin Work) but haven't explicitly
> done a Commit Work or Rollback before it ends will lock you out of
> a table (until you restart postgresql)?

The symptoms you describe sound like multiple transactions trying to
update the same row. There is a row-level lock that prevents the later
ones from completing until the first one commits or aborts.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2001-05-23 19:23:48 Re: Row-Level Locking?
Previous Message Robert 2001-05-23 19:11:53 Sessions with Postgres