pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: jose fuenmayor <jafn82@gmail.com>
To: Simon Riggs <simon@2ndquadrant.com>
To: pgsql-admin@postgresql.org
Subject: Re: Issue with processes open for clients
Date: Mon, 13 Nov 2006 09:38:11 -0400
Message-ID: <69f2062a0611130538he92b0a5u79dbf8ca95313080@mail.gmail.com> (raw)
In-Reply-To: <1163195184.3634.924.camel@silverbirch.site>
References: <69f2062a0611091154t6a345360g165dd0e80495bcb7@mail.gmail.com>
	<1163195184.3634.924.camel@silverbirch.site>

Thanks for your answer!
How can i issue a cancel?
thanks in advance!
On 11/10/06, Simon Riggs <simon@2ndquadrant.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
>
>
>

view thread (7+ messages)  latest in thread

Message-ID: <69f2062a0611130538he92b0a5u79dbf8ca95313080@mail.gmail.com>
Permalink:  ../69f2062a0611130538he92b0a5u79dbf8ca95313080@mail.gmail.com/
Also on:    postgresql.org/message-id/69f2062a0611130538he92b0a5u79dbf8ca95313080@mail.gmail.com

 · 

reply

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: jafn82@gmail.com, simon@2ndquadrant.com
  Subject: Re: Issue with processes open for clients
  In-Reply-To: <69f2062a0611130538he92b0a5u79dbf8ca95313080@mail.gmail.com>
  References: <69f2062a0611091154t6a345360g165dd0e80495bcb7@mail.gmail.com> <1163195184.3634.924.camel@silverbirch.site> <69f2062a0611130538he92b0a5u79dbf8ca95313080@mail.gmail.com>

* 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