Re: timeout for a transaction - Mailing list pgsql-general

From Tom Lane
Subject Re: timeout for a transaction
Date
Msg-id 21076.991778495@sss.pgh.pa.us
Whole thread Raw
In response to timeout for a transaction  (HYip <hualinyip@earthlink.net>)
List pgsql-general
HYip <hualinyip@earthlink.net> writes:
> I have a connection opened, and begin a transaction.  If tomcat or web
> server dies for no reasons, I found that in the backend, there is a
> postgresql  server process waiting for the transaction to complete.  It
> blocks all my database calls because of this waiting process.

The backend will abort its transaction and exit when it observes closure
of the client connection.  If your webserver is holding open the TCP
connection even after it's stopped processing your script, then you'd
best fix the webserver.

            regards, tom lane

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: setting PGDATESTYLE
Next
From: Manuel Sugawara
Date:
Subject: Re: Current database name