salva/p5-AnyEvent-Pg — pull request #4 by shripchenko (2012-07-03 16:25:00+00:00)
Title: auto scavenge old psql pool connections

+ reuse oldest from the {idle} pool
+ save time of last access
+ scavenge connections not being accessed for some amount of time
+ $pool->destroy() to delete pool
+ make all $bla->destroy() return TRUE

feel free to take and modify it as a base.
$pool-> scavenge() could be exposed to user.