pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Killing Long running query or user session
4+ messages / 2 participants
[nested] [flat]

* Killing Long running query or user session
@ 2004-08-10 09:14 David Ecker <david@familie-ecker.net>
  2004-08-10 11:03 ` Re: Killing Long running query or user session Gaetano Mendola <mendola@bigfoot.com>
  0 siblings, 1 reply; 4+ messages in thread

From: David Ecker @ 2004-08-10 09:14 UTC (permalink / raw)
  To: pgsql-admin

How can I kill/stop a long running query or a complete user session using an
superuser account?

Thx
David Ecker



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Killing Long running query or user session
  2004-08-10 09:14 Killing Long running query or user session David Ecker <david@familie-ecker.net>
@ 2004-08-10 11:03 ` Gaetano Mendola <mendola@bigfoot.com>
  2004-08-10 12:47   ` Re: Killing Long running query or user session David Ecker <david@familie-ecker.net>
  0 siblings, 1 reply; 4+ messages in thread

From: Gaetano Mendola @ 2004-08-10 11:03 UTC (permalink / raw)
  To: David Ecker <david@familie-ecker.net>

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






^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Killing Long running query or user session
  2004-08-10 09:14 Killing Long running query or user session David Ecker <david@familie-ecker.net>
  2004-08-10 11:03 ` Re: Killing Long running query or user session Gaetano Mendola <mendola@bigfoot.com>
@ 2004-08-10 12:47   ` David Ecker <david@familie-ecker.net>
  2004-08-10 14:27     ` Re: Killing Long running query or user session Gaetano Mendola <mendola@bigfoot.com>
  0 siblings, 1 reply; 4+ messages in thread

From: David Ecker @ 2004-08-10 12:47 UTC (permalink / raw)
  To: 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




^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Killing Long running query or user session
  2004-08-10 09:14 Killing Long running query or user session David Ecker <david@familie-ecker.net>
  2004-08-10 11:03 ` Re: Killing Long running query or user session Gaetano Mendola <mendola@bigfoot.com>
  2004-08-10 12:47   ` Re: Killing Long running query or user session David Ecker <david@familie-ecker.net>
@ 2004-08-10 14:27     ` Gaetano Mendola <mendola@bigfoot.com>
  0 siblings, 0 replies; 4+ messages in thread

From: Gaetano Mendola @ 2004-08-10 14:27 UTC (permalink / raw)
  To: David Ecker <david@familie-ecker.net>

David Ecker wrote:

> Is there a posibilty to kick the session through a sql-statement? 

NOPE

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

You can allow the acces to certain DB to a user and from some IP,
I don't know if this can help you and/or if solve your problem.


Regards
Gaetano Mendola






^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2004-08-10 14:27 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-08-10 09:14 Killing Long running query or user session David Ecker <david@familie-ecker.net>
2004-08-10 11:03 ` Gaetano Mendola <mendola@bigfoot.com>
2004-08-10 12:47   ` David Ecker <david@familie-ecker.net>
2004-08-10 14:27     ` Gaetano Mendola <mendola@bigfoot.com>

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