Re: Terminate query on page exit - Mailing list pgsql-general

From patrick keshishian
Subject Re: Terminate query on page exit
Date
Msg-id CAN0yQBp5RBf4R+9hhmPoNHfiXf2cY+hhLAknnvFrC0ArjY=WYw@mail.gmail.com
Whole thread Raw
In response to Re: Terminate query on page exit  (Albe Laurenz <laurenz.albe@wien.gv.at>)
Responses Re: Terminate query on page exit
Re: Terminate query on page exit
List pgsql-general
On Tuesday, February 19, 2013, Albe Laurenz wrote:

> david harel wrote:
> > I use postgresql on a Linux server on a virtual machine (despite my
> protest to IT personal).
> > The client is typically a web server implementing PHP sites.
> >
> > Customers many times close a page typically when a heavy report runs for
> too long.
> > Using the command "top", I got the impression that the query still runs
> even though the page was
> > closed.
>
> That is true.
>
> > I want to make sure the query is dropped when the customer closes the
> page.
> > Any method to kill such query would it still hang out there?
>
> One crude method would be to set statement_timeout to a nonzero
> value - then queries that take longer than that many seconds
> will be canceled.


you don't truly mean to advise that, do you? :)
--patrick

pgsql-general by date:

Previous
From: Tomas Pasterak
Date:
Subject: Questions: How to configure PostgreSQL at the beginning ....
Next
From: Tom Lane
Date:
Subject: Re: Perl function leading to out of memory error