Re: Killing Long running query or user session

From: David Ecker <david(at)familie-ecker(dot)net>
To: pgsql-admin(at)postgresql(dot)org
Subject: Re: Killing Long running query or user session
Date: 2004-08-10 12:47:38
Message-ID: d10efab80a3fdc315e6f42913de4f238@unlimited.ultrafeed.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Is there a posibilty to kick the session through a sql-statement? I don't
want to give shell access to the postgreSQL administrator.

Another posibility would be to block access to a database for a set of
users/groups using sql only. Is there such a command?

thx
David Ecker

Gaetano Mendola wrote:

> David Ecker wrote:
>
>> How can I kill/stop a long running query or a complete user session using
>> an superuser account?
>>
>> Thx
>> David Ecker
>
> At my knowledge you have to kill SIGTERM the backedn that is managing the
> connection. Do as super user "select * from pg_stat_activity", look at
> the procpid that have to be killed and kill it.
>
>
>
> Regards
> Gaetano Mendola

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Rodrigo Botana 2004-08-10 13:39:41 Replication
Previous Message Gaetano Mendola 2004-08-10 11:03:28 Re: Killing Long running query or user session