Re: How to force disconnections from a Perl script?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Csaba Nagy <nagy(at)ecircle-ag(dot)com>
Cc: Martijn van Oosterhout <kleptog(at)svana(dot)org>, Kynn Jones <kynnjo(at)gmail(dot)com>, Postgres general mailing list <pgsql-general(at)postgresql(dot)org>
Subject: Re: How to force disconnections from a Perl script?
Date: 2007-02-20 02:43:57
Message-ID: 18622.1171939437@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Csaba Nagy <nagy(at)ecircle-ag(dot)com> writes:
> And pg_stat will only show you running queries, not the idle
> connections.

Nonsense. pg_stat_activity + "kill -TERM" should solve this problem
reasonably well. Some of us don't trust kill -TERM 100%, which is why
it's not currently exposed as a standard function, but if you're using
a reasonably recent PG release it's probably safe.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message David Fetter 2007-02-20 03:08:06 Re: complex referential integrity constraints
Previous Message Alvaro Herrera 2007-02-20 02:26:08 Re: Why *exactly* is date_trunc() not immutable ?