Re: Terminate the idle sessions

From: Li Japin <japinli(at)hotmail(dot)com>
To: Michael Paquier <michael(at)paquier(dot)xyz>
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 13:53:12
Message-ID: AFE3C678-9687-41AA-8BD7-D00A48C65267@hotmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Jun 10, 2020, at 4:25 PM, Michael Paquier <michael(at)paquier(dot)xyz<mailto:michael(at)paquier(dot)xyz>> wrote:

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

Why not implement it in the core of Postgres? Are there any disadvantages of
implementing it in the core of Postgres?

Japin Li

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2020-06-10 13:57:29 Re: Recording test runtimes with the buildfarm
Previous Message Tom Lane 2020-06-10 13:51:13 Re: Atomic operations within spinlocks