From: David Ecker <david@familie-ecker.net>
To: pgsql-admin@postgresql.org
Subject: Re: Killing Long running query or user session
Date: Tue, 10 Aug 2004 12:47:38 GMT
Message-ID: <d10efab80a3fdc315e6f42913de4f238@unlimited.ultrafeed.com> (raw)
References: <065ed569632b300f0b33223972ec4e12@unlimited.ultrafeed.com>
<4118AB80.5030209@bigfoot.com>
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
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: david@familie-ecker.net
Subject: Re: Killing Long running query or user session
In-Reply-To: <d10efab80a3fdc315e6f42913de4f238@unlimited.ultrafeed.com>
References: <065ed569632b300f0b33223972ec4e12@unlimited.ultrafeed.com> <4118AB80.5030209@bigfoot.com> <d10efab80a3fdc315e6f42913de4f238@unlimited.ultrafeed.com>
* 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