Re: Terminating a query that appears to be hung - Mailing list pgsql-admin

From Eduardo J. Ortega
Subject Re: Terminating a query that appears to be hung
Date
Msg-id 200701292233.36805.ejortegau@cable.net.co
Whole thread Raw
In response to Re: Terminating a query that appears to be hung  ("Phillip Smith" <phillip.smith@weatherbeeta.com.au>)
List pgsql-admin
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

pgsql-admin by date:

Previous
From: "Guido Barosio"
Date:
Subject: Re: Terminating a query that appears to be hung
Next
From: Arnau
Date:
Subject: Re: Very strange postgresql behaviour