Search Postgresql Archives

Re: what does pg_activity mean when the database is stuck?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jun 12, 2014 at 6:34 PM, Michael Paquier
<michael.paquier@xxxxxxxxx> wrote:
> On Thu, Jun 12, 2014 at 11:44 AM, Si Chen
> <sichen@xxxxxxxxxxxxxxxxxxxxxxxx> wrote:
>> Is there a way to configure postgresql to automatically release connections
>> that have been idle for a set amount of time?
> Not directly. However with 9.3 you could use a background worker like this one:
> https://github.com/michaelpq/pg_plugins/tree/master/kill_idle
> It tracks connections that have been idle for a given amount of time
> and closes them with pg_terminate_backend when theyr are idle for a
> amount of time longer than the one set.
Just adding that this bgworker is rather experimental, and that the
common recoommendation is to have your application close correctly the
connection it uses...
-- 
Michael



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux