Re: Issue with processes open for clients

From: "jose fuenmayor" <jafn82(at)gmail(dot)com>
To: "Simon Riggs" <simon(at)2ndquadrant(dot)com>, pgsql-admin(at)postgresql(dot)org
Subject: Re: Issue with processes open for clients
Date: 2006-11-13 13:38:11
Message-ID: 69f2062a0611130538he92b0a5u79dbf8ca95313080@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Thanks for your answer!
How can i issue a cancel?
thanks in advance!
On 11/10/06, Simon Riggs <simon(at)2ndquadrant(dot)com> wrote:
>
> On Thu, 2006-11-09 at 19:54 +0000, jose fuenmayor wrote:
> > Hi all , I have a question or a doubt, when I ran psql remotely it
> > opens a process on the server, so I issue a query (select count(*)
> > from 80millionsrowstable) then I can see that process taking cpu and
> > mem from the server (using top), then I cancel the psql on the client,
> > I expect to see that process gone but that is not the case it is still
> > there! and taking resources!.
> >
> > When I cancelled the query issued by the client is not supposed to
> > eliminate the process open for him on the server?
>
> If you quit psql, then the server may not realise you have disconnected.
> You need to issue a cancel, so that can be communicated to the server so
> it knows to quit.
>
> --
> Simon Riggs
> EnterpriseDB http://www.enterprisedb.com
>
>
>

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message tam wei 2006-11-13 15:37:38 Enable monitoring on the health of postgres db
Previous Message Joshua D. Drake 2006-11-13 12:28:53 Re: Postgresql install