Re: incomplete transaction keeps table locked? - Mailing list pgsql-general

From Tom Lane
Subject Re: incomplete transaction keeps table locked?
Date
Msg-id 16499.990645580@sss.pgh.pa.us
Whole thread Raw
In response to incomplete transaction keeps table locked?  (gherson@snet.net (George Herson))
List pgsql-general
gherson@snet.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

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: NOTIFY/LISTEN Using Embedded SQL (ecpg)
Next
From: "Thalis A. Kalfigopoulos"
Date:
Subject: DB2 enhancements?