From: Eduardo J. Ortega <ejortegau@cable.net.co>
To: pgsql-admin@postgresql.org
Subject: Re: Terminating a query that appears to be hung
Date: Mon, 29 Jan 2007 22:33:34 -0500
Message-ID: <200701292233.36805.ejortegau@cable.net.co> (raw)
In-Reply-To: <006601c743fe$31e824c0$79587cca@ITLaptop>
References: <006601c743fe$31e824c0$79587cca@ITLaptop>
You can also kill the postgres process corresponding to the hung query. do NOT
kill -9. Only kill. Postgres will rollback any uncomitted transaction and
finish that connection gracefully.
On Monday 29 January 2007 18:35, Phillip Smith wrote:
> Can youo be a bit more specific...? What client?
>
> Psql should terminate the connection when it exist. pgAdmin will close it
> when you exit the ap, or if you choose 'Disconnect' from the menu. In PHP
> you'll need to call pg_close function... Every 'client' will have a
> different method...
>
> -----Original Message-----
> From: pgsql-admin-owner@postgresql.org
> [mailto:pgsql-admin-owner@postgresql.org] On Behalf Of Robert D Oden
> Sent: Tuesday, 30 January 2007 2:03 AM
> To: PgSQL ADMIN
> Subject: [ADMIN] Terminating a query that appears to be hung
>
> Is there a way to terminate a client session without having to restart
> Postgres.
>
> Thanks
--
Eduardo J. Ortega - Linux user #222873
"No fake - I'm a big fan of konqueror, and I use it for everything." -- Linus
Torvalds
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: ejortegau@cable.net.co
Subject: Re: Terminating a query that appears to be hung
In-Reply-To: <200701292233.36805.ejortegau@cable.net.co>
References: <006601c743fe$31e824c0$79587cca@ITLaptop> <200701292233.36805.ejortegau@cable.net.co>
* 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