Re: Terminating a query that appears to be hung

From: "codeWarrior" <gpatnude(at)hotmail(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: Re: Terminating a query that appears to be hung
Date: 2007-01-30 17:05:58
Message-ID: epntmk$1s39$1@news.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

and from the shell prompt: you can find ALL postgreSQL process id's by:

%>ps ax | grep postgres

""Eduardo J. Ortega"" <ejortegau(at)cable(dot)net(dot)co> wrote in message
news:200701292233(dot)36805(dot)ejortegau(at)cable(dot)net(dot)co(dot)(dot)(dot)
> 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(at)postgresql(dot)org
>> [mailto:pgsql-admin-owner(at)postgresql(dot)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
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: don't forget to increase your free space map settings
>

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Bruno Wolff III 2007-01-30 19:07:53 Re: Postgres encyrption export
Previous Message codeWarrior 2007-01-30 17:04:15 Re: postgres-two different version