Re: timeout for a transaction

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: HYip <hualinyip(at)earthlink(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: timeout for a transaction
Date: 2001-06-05 22:01:35
Message-ID: 21076.991778495@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

HYip <hualinyip(at)earthlink(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Thalis A. Kalfigopoulos 2001-06-05 22:11:24 Re: PostgreSQL and TPC benchmarks
Previous Message Tom Lane 2001-06-05 21:59:01 Re: PostgreSQL and TPC benchmarks