Skip site navigation (1) Skip section navigation (2)

Re: View running Processes ?

From: Arnaud Lesauvage <thewild(at)freesurf(dot)fr>
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: View running Processes ?
Date: 2006-02-24 10:24:43
Message-ID: 43FEDEEB.8090402@freesurf.fr (view raw or flat)
Thread:
Lists: pgsql-novice
A. Kretschmer a écrit :
> http://www.postgresql.org/docs/8.1/interactive/functions-admin.html
> pg_cancel_backend(pid int)

Oh yes ! So if I understand correctly, I get the pid of the query 
with "select * from pg_stat_activity;", then I just kill the query 
with "select pg_cancel_backend(<pid>);" ?
Very nice !

PS : Sorry for asking this kind of questions when the answers are 
in the doc, but I find it quite difficult to find informations in 
the only doc. Maybe it is because I am used to access and mysql, 
and the terminology used in postgres is quite different...


Regard
--
Arnaud


In response to

pgsql-novice by date

Next:From: A. KretschmerDate: 2006-02-24 10:37:11
Subject: Re: View running Processes ?
Previous:From: Luis SilvaDate: 2006-02-24 10:09:29
Subject: Re: check problem

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group