From: Simon Riggs <simon@2ndquadrant.com>
To: jose fuenmayor <jafn82@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Issue with processes open for clients
Date: Fri, 10 Nov 2006 21:46:23 +0000
Message-ID: <1163195184.3634.924.camel@silverbirch.site> (raw)
In-Reply-To: <69f2062a0611091154t6a345360g165dd0e80495bcb7@mail.gmail.com>
References: <69f2062a0611091154t6a345360g165dd0e80495bcb7@mail.gmail.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: simon@2ndquadrant.com, jafn82@gmail.com
Subject: Re: Issue with processes open for clients
In-Reply-To: <1163195184.3634.924.camel@silverbirch.site>
References: <69f2062a0611091154t6a345360g165dd0e80495bcb7@mail.gmail.com> <1163195184.3634.924.camel@silverbirch.site>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox