Clients disconnect but query still runs

From: Robert James <srobertjames(at)gmail(dot)com>
To: Postgres General <pgsql-general(at)postgresql(dot)org>
Subject: Clients disconnect but query still runs
Date: 2009-07-28 00:28:26
Message-ID: e09785e00907271728k4bf4d17kac0e7f5ec9316069@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi. I noticed that when clients (both psql and pgAdmin) disconnect or
cancel, queries are often still running on the server. A few questions:
1) Is there a way to reconnect and get the results?
2) Is there a way to tell postgres to automatically stop all queries when
the client who queried them disconnects?
3) Is there a way to see all queries whose clients have disconnected?
4) And finally: Why is this the behavior? Doesn't this keep some very long
queries running which drain performance but don't seem to benefit anyone?

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Stephen Frost 2009-07-28 00:51:37 Re: general question on two-partition table
Previous Message David Wilson 2009-07-28 00:26:05 Re: general question on two-partition table