Re: killing idle attaches without killing others

From: Vick Khera <vivek(at)khera(dot)org>
To: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: killing idle attaches without killing others
Date: 2010-08-04 14:18:31
Message-ID: AANLkTim2S7X215HD+osoCGVz4tVbVyc0DX3EqJeLeZWc@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Aug 4, 2010 at 10:03 AM, Gauthier, Dave <dave(dot)gauthier(at)intel(dot)com>wrote:

> How can one kill just the <IDLE> processes I see attached to a DB (from
> pg_stat_activity) without disturbing the others? If I need to kill the idle
> pids one ata time, which signal_name should I use for that?
>
>
>
>
Connected to psql as a superuser, issue SELECT pg_cancel_backend(PID); where
PID is the pid of the process to close.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Dean Rasheed 2010-08-04 14:26:25 Re: killing idle attaches without killing others
Previous Message Gauthier, Dave 2010-08-04 14:03:26 killing idle attaches without killing others