Re: Terminate the idle sessions

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: Li Japin <japinli(at)hotmail(dot)com>
Cc: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Terminate the idle sessions
Date: 2020-06-10 08:25:18
Message-ID: 20200610082518.GC358163@paquier.xyz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, Jun 10, 2020 at 05:20:36AM +0000, Li Japin wrote:
> I agree with you. But we can also give the user to control the idle
> sessions lifetime.

Idle sessions staying around can be a problem in the long run as they
impact snapshot building. You could for example use a background
worker to do this work, like that:
https://github.com/michaelpq/pg_plugins/tree/master/kill_idle
--
Michael

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Kyotaro Horiguchi 2020-06-10 08:38:44 Re: Physical replication slot advance is not persistent
Previous Message Andrew Gierth 2020-06-10 07:25:03 Re: Speedup usages of pg_*toa() functions